Add in logging.
Make sure to use the Mongo URL if it exists.
Fix paths inside the appcache.