added definitions
added content type header parser
better resource interface, handling in & out content types