Finish basic framework to parse requests. Move some util classes to common package.