Change API to set flags via promise or HttpPromise

This allows the feature flags to be loaded from
any source, not just a remote JSON file
Merge pull request #2 from markdalgleish/set-flags-via-promise

Change API to set flags via promise or HttpPromise