Intermediate working commit.

Added some functionality for flashpages in main webserver.py file,
mainly connections to a MongoDB.