whitespace fixes
notice fixes
fixes for CRM-13220

----------------------------------------
* CRM-13220: Events listing ( html ) is broken
  http://issues.civicrm.org/jira/browse/CRM-13220
Merge pull request #1430 from kurund/event-ical-fixes

CRM-13220, event were not listed in ical/html feed due to ACL caching bug

Tested HTML, rss and ical listings including w/ event type filter (type=N). Note that I did NOT test if the functionality implemented by Adam Wight which caused this regression is affected by these changes.