Generalized webserver to store things on mongodb