Implement limiting of results

Added support for limiting the number of results from a query. this
is implemented by filtering the results ruturned from the Query on the db
From what I read in the docs the only way to get an array out of an NSSet is with allObjects, so we can reduce the array's size