Add AMD support

Adds AMD support. I should note that the extension still extends Backgrid via namespacing, it does not export/return anything. It also makes lunr a hard dependency for AMD users.