Added lookups.js lib, and some code+docs for match.js