Unify the Single line comment style
Shorten overly long lines
Tidying the comments
Avoid shadowing when it isn't necessary
Create a constant for the max length of an event name
Fix some code style issues
Import constants from the solr implementation the TaskHandler
Add a solrDateRange method to generate date ranges for solr searches
Update the Search1 API to 1.5

The search1 API removes the concept of Subtype, so this is also removed from
the search2 API