add broadcast functionality

cleans up and sets the standard for communication between to server an
client to be json.
also added connections and allowed dicts to hold allowed users (which
will eventually be read in from a file) and current connections with the
server.
add swp to .gitignore