corrected ContentType to match NS.net
made mock_server includable without running it for debugging purposes
basic fake TG API
Added error emulation to mock TG API and improved error emulation in general