init rewritter in go routines
added stub http server, data structs for json marshalling