Added bit-flags class to replace Square's current internals to query
against. Added a constants object, and started tweaking the UI.