changes to enable in memory hosting of web api
added tests

tests for issue 191
Merge pull request #200 from filipw/master

Enabled web configuration to run in memory when specified
cleaning up