AJAX API for Lookup Fields

Implements #27