examples/hello: Update use of cli_server function

* Refactored view functions out of WSGI file
* Updated the invocation of ``cli_server``
examples: Update rest of cli_server invocations