Add jshint configuration file
Fix some typos and bad code style
Continue further in the transition from plot -> mapfeature

Note that this *will* break search queries for properties on plot
(but we don't have any in OTM2)

It is intended to allow searching by tablename in addition to model name
with a later change