adapted example from servant-server
some chunking of code
adding logging
Merge branch 'master' of https://github.com/mooreniemi/haskapi