Add functional test for a rest app

To make sure it doesnt segfault.  Also to make sure
express + socket.io + mongodb are working properly.