improvements to API/records_controller #count records methods & derivatives
Merge branch 'master' of https://github.com/steveoro/goggles