Changed memory host to be owin based.
Small change.
Fixed some issues with the memory host.
- Fixed handling requests after shutdown.
- Fixed encoding POST data
Don't use Exception type