Some helper functions to expose mongoose models through rest. Very specific to our apps.