Make `lib/app.js` a factory for `lamassu-server`

Extract all command line parsing to `bin/lamassu-server`.

This will effectively make it easier to write tests for
`lamassu-server`.