Improve REST API multithreading. Now respects CogServer 'shutdown' command.
Update whitespace
Merge pull request #1064 from cosmoharrigan/rest-api

Improve REST API multithreading. Now respects CogServer 'shutdown' command