unbreak writing restricted.json
allow reverse sorting and properly order numbers
Store some metrics in the json and adjust the format accordingly.
Reduce unneeded differences between site handlers
parse floats clientside for percent sorting
parse ints on clientside for proper sorting that includes 0
Merge branch 'sorting'

Conflicts:
	templates/dynamic/assets/app.js