registrar module: user-agent filtering for lookup()

Adds flags for lookup() for filter contacts by user-agent with regexp.