Added DataStorage class. Replaced data module with datastorage.
Updated events module to use the DataStorage object
Added bitmaskEnabled() and bitmaskUpdate()
Refactored the events API into the EventHandler class
Added isPowerOfTwo()
Removed inheritance between EventHandler and DataStorage
Refactored 'states' module into the StateHandler class and added the StateHandlerEvents and State enumerations
Added isPowerOfTwo()'s tests