Basic framework
Implemented json,html views, xml not ready.