New feature: topic threads

Renamed config.json to config.json.template and moved port number to separate config field. Updated app server and cli script to get port from config. Fixed per-user pastie tracking in server code. Added support for topic threads. Updated cli script to support appending to topic and printing individual pasties and topic threads.