Now maps definitions can accept a priority.
Maps with higher priority will be executed first. On equal priority, first inserted wins.
Fixes #1