Occurrences filtering

This PR implements a filtering option in the Hide drop down menu on the Events page which filters events based on their occurrences parameter. Events should be filtered when the number of occurrences of this event firing is equal to or exceeds the check's occurrences parameter. A unit test for the filter function is included.

This is in reference to https://github.com/sensu/uchiwa/issues/231