add path and pathtemplate entities and controllers.
fix responses
some fixes etc.