GUI: Move gui actions parser and action:value wrapper setup into separate functions.
Also fix/add gui event actions parsing.