Apply kaazing checkstyle rules from code.quality tot he gateway.server.api project.  Lessons learned:
* copyright header is not consistent with required code.quality, fixed to make comma optional
* trailing spaces inside the license text at the top of each file should be fixed globally
* many errors are simply trailing-whitespace lines; perl-pi.bak -e 's#(\s+)\n#\n#g' fixes most issues