First working version of htgt_webapp