Add a max offset parameter

lsearchd had one of the java side and we should probably have one too.  Both
systems will keep the user from going over that max offset silently, just
setting offset to max offset if it is higher.

Bug: 63799
Change-Id: I037429c38035cd2f206011dda2f5f70616385366
Merge "Add a max offset parameter"