Add a few more generic queries.

A couple of extra query methods to perform simple time based queries, observer queries for watching for background updates and a statistic query that is useful for working out the number of steps in a day. (In particular useful when you have multiple data sources as this is abstracted out.)

A minor fix to requestAuthorization to make sure that callback is still avaliable if it is used to notify the user of an error.