Added numeric check to valid state names.
Removed need for substr() call when doing internal look-up of phase names
indentation police (+1 squashed commit)
Squashed commits:
[3654d45] indentation police
Closes #52 - Added .perms check in flow.state unit tests
Closes #63 Replaced _name with _alias throughout codebase and unit tests