Tidied up bootstrapper code and added MongoDB startup code back in.