Added new query method and getInstance for valueResource pertaining to limit. Added test forUSERGRID-1520
Added new query method and getInstance for valueResource pertaining to limit.