Robustness improvements for tests
Fix tests to use new server.start() and .stop()
Fix tests so that http server is not kept alive
Merge branch '20130806-fixing-tests'