Encapsulated the Flux Library removing all global variables, only introducing the global function flux.
Merge pull request #1 from BAJ-/master

Merging code making Flux a reusable and properly scoped JS library. Thanks to @BAJ- for some serious refactoring and optimization.