Tweak trips analysis export
Styling tweak.
Refactor JS menu generation

for flex & predefined reports
Reinstate sortElements Javascript library
Remove cruft
Merge branch 'master' into rails_4_0

Conflicts:
	config/application.rb