CLI and test support

Don't init the server if no HTTP server supplied
Merge pull request #3 from thepian/master

CLI and test support