Use raw URL for establishing Mongo connection.
Change token interface to a generic keystore.