[ADDED] Getting output format from accept http header
[ADDED] Base layout in templates