added config.proto
added rewriting to http