Select Git revision
- moved the cli application code into a separate file - added a more useful error message on command line usage errors - adding a option to enable the metrics - adding the middleware metrics as optional - fixed up the server test code