ActionsParser refactor

@zdne Also, check this test case please.

Maybe it's because an error with sundown/mdp?