Add isActionFlag method

This commit adds the isActionFlag to the API which will determine if an
flag has been defined for a specific action.

This commit also includes a few minor cleanups that will cause execution
order to not break when parse is called multiple times.
Merge pull request #10 from ploubser/is_action_flag

Add isActionFlag method