Refactor app start up code
Refactor app start up code

The app.listen function shouldn't be nested within other superfluous
functions...
Starting the app and listening on a port should be the primary fucntion
before attempting anything else.

MOM-554

jembi/openhim-mediator-file-queue,jembi/openhim-mediator-file-queue