Add prefix and early-bind offset id replacement.

This simplifies things as we can do the id replacement immediately in
AbstractPageObject's element factory methods (text, textBox, etc.) and not worry
about changing ByXxx classes to know about the prefix/offset.
Fix buildfile.