Add CLI switches to the micro http service.
Handle errors more gracefully.