RESTWS-601 Add count property to the REST response data
return a totalCount property for requests with parameter totalCount=true
indicating the total number of records available for the requested resource and
the given filters
* add totalCount property to BasePageableResult if requested by
request parameter totalCount=true
* override BasePageableResult.getTotalCount method in AlreadyPaged and NeedsPaging
* fix NullPointerException in RequestContext.getParameter() when its request is null
* add tests