imported patch java-api

--HG--
rename : lang/python/Makefile.am => lang/java/Makefile.am
rename : lang/python/wiredtiger.i => lang/java/wiredtiger.i
Check for errors when returning keys or values.
Fix whitespace in Java wiredtiger.i.
Generate javadoc into docs/java for the Java API.
Merge with public develop branch.
update / insert typo
Improve configure detection of Java.
Fix detection of javac.
Have JAVAC default to "javac".
Merge branch 'develop' of github.com:wiredtiger/wiredtiger into develop

Conflicts:
	build_posix/configure.ac.in
Fix build issues with the Java API caused by C API changes.
Merge remote-tracking branch 'upstream/develop' into develop

Conflicts:
	build_posix/Make.subdirs
	build_posix/configure.ac.in
Rename cursor equals to compare in Java API.
Have compare return an int not a bool. Add Java implementation for Cursor::compare.
Move generated Java files into a subdirectory.
Merge branch 'updevelop' into develop. Manually merged.
Fix Java build to work with recent autoconf.
Add in examples to Java build.
Merge branch 'develop' into java
Add a Java implementation of packed formats.

Also add a test case and update the layout of the Java build.