fixes #2599 - Bulk-selectable environments & puppet classes import

Makes the Env/Classes import a bit safer by first of all defaulting all the
checkboxes to be unchecked. Also adds multiple toggle links to selectively
realize All/New/Changed/Obsolete puppet modules.
fixes #2617 Can't edit a host once it's created
fixes #2623 - trends link was broken
fixes #2386 - permission failure on create_lookup_value
re-fixes #2549 - default location bug was introduced in commit 66afbc33 that is fixed
fixes #2621 search box and search button alignment on firefox.