Database controlled hotness function.
Merge branch 'master' into add-constants-to-control-index-weighting

Conflicts:
	db/structure.sql
Merge pull request #155 from askaway/add-constants-to-control-index-weighting

Database controlled hotness function.