Imports github.com/gorilla/mux github.com/gorilla/websocket github.com/joho/godotenv gopkg.in/mgo.v2 gopkg.in/mgo.v2/bson Standard library imports bytes encoding/base64 encoding/json html/template io/ioutil log math/rand net/http os strings time