added controller method action_path()
added controller method template_dir() and template_renderer()
cleanup code
added controller method json_renderer()
added accessor for pagination