Protocol and paging fixes

Server now processes DataServiceVersion and MaxDataServiceVersion in
request header to determine the OData version to use when responding.
Modified code to use a subquery in a CONSTRUCT to enable paging
operations to be applied at the entity level.