Use `reps` instead of `repsSorted`

Signed-off-by: Timothy Gu <timothygu99@gmail.com>
Proper environment handling through config.js and caching

ab -n1000 -c25 localhost/history
3.9s -> 2.5s (36% performance increase)

See also http://jsperf.com/ejs-vs-handlebars-complex/6 (EJS vs EJS Precompiled,
3696 vs 31055 ops/s here)

Signed-off-by: Timothy Gu <timothygu99@gmail.com>
index wip

Signed-off-by: Timothy Gu <timothygu99@gmail.com>
Fix 500 with lots of 404 requests to report page

This was an DDoS vulnerability.

Signed-off-by: Timothy Gu <timothygu99@gmail.com>