Refactor hasas_client

- Don't spawn the HTTP listener in a new thread, re-use main thread.
- Remove unused url route main.
- Expose app on client to allow it to be started from outside the client