Added external exception handling in Java implementation

Solution to the issue raised in the Java implementation at http://github.com/pcragone/anurandom/issues/4
Preserves the original behavior of getPage() but provides method for users to manage errors in their own code.
The example class demonstrates both methods of use.