updated to latest restful_json and permitters