Bare bones HTTP JSON server (sample code)