markup_or_json decorator, moved json_handler to libr
utilized markup_or_json for views
title in view and template