added comments and clean-ups; also began with result aggregation
added support for result queries; added context-loader-listener again
and removed the init-param from the servlet-entry plus added servlet.xml