Stop searching after a match
Remove unecessary identical functions
Don't specially case empty mapping

Principle of least suprise would dictate that an empty mapping should map all
targets to NOBODY rather an special-casing it to map to -1.
Merge pull request #6 from rconradharris/various-cleanups

Various cleanups