Implements complex query functionality for alarm history

New API resource /query/alarms/history has been added.

Implements: blueprint complex-filter-expressions-in-api-queries
Change-Id: I8a98b4edc2dc7afac9261bc0cd83f69d7cadc4b9
Merge "Implements complex query functionality for alarm history"