Initial implementation of macros

* flipper macro implemented
* flipperOrDefault macro implemented
* unit tests implemented
Merge pull request #1 from tysonjh/implement-macro

Initial implementation of macros