Added support for wildcards in exitexists test and move action

Also switched all loops over dicts to use iterators.