update function to return json
add limit for pagination
Merge branch 'master' of github.com:WebTales/rubedo