Add more Javadoc and some minor API changes

* some internal redesign for better performance
Relocate 'message-wrapping.protobin' resource out of root package to prevent OSGI problems