Incorporated JSR305 into libraries.
Fixed numerous issues identified by FindBugs.
Fixed failure to null check on Document.isDeleted
Fixed Database.equals to null check immediately.