Adds an integration test for new-fact & get-timeseries
Refactor & fix update/query & range-where
Merge pull request #10 from nberger/add-fact-tests

Fix query & range-where. Add some tests