step towards spawning api server

- handling missing worker args better (improved error messages)
- simplified main init
- adding apiHost param to allow hosting on a different machine
forking api master when both pages and api server run on same machine
testing api and pages launched together

- ensuring that both handle valid requests in that case
- ensuring that both handle requests that cause 500