Fix tests + Javadoc + Exception enhancement

Ensure tests can work in a dedicated sub-folder.
Configure and starts Javadoc.
Fix the CometDocsException class to take into account the "error" field
and display a better message.