Request Content-Type parsing

reordered init methods so params method can read headers.
added request content type header checking/parsing.