Allow flags to be set with array
Ensure setting flags always returns promise
Merge pull request #8 from markdalgleish/set-flags-with-object

Allow flags to be set with array