Precompiled query helper from https://bitbucket.org/zzzeek/sqlalchemy/wiki/UsageRecipes/BakedQuery
Use precompiled queries. Profiling shows a 30% speed up for pages from db.
Avoid unnecessary calls to template_namespace
More profile command options
Avoid extra queries by checking instance map
Merge pull request #519 from ENCODE-DCC/baked-queries

Baked queries
Fix NameError. Looks like the /session view is never used now...
Clean up embedding
Use embed for homepage
More cleanup of views
Use a tuple -- the equivalent of a db row -- instead of sets
Fix broken audit
improve display of existing files in file input

* show filename with link to download in new window
* change the global handleClick to ignore links with a target
* add the word 'replacement' if a file exists to make it clearer that it will be replaced
Merge pull request #520 from ENCODE-DCC/forms-fix-file-input

improve display of existing files in file input
Merge remote-tracking branch 'origin/master' into 2469-platform-move
Use replicate.platform as backup

If an experiment’s files don’t have a platform, then look in the experiment’s first replicate and get the platform from there if it has one.