Cleaned up code.

I did some code clean up. Addressed most of the issues except #2 that is related to ext/build-common-ext.xml. Please override my changes. 

One thing I noticed was that I had to include "javax.servlet-api.jar" in the global lib to revolve one compilation error for crafter-configuration-portlet. Since lib is on the ignore list, I have not checked the jar. You may want to add it.