change "mode" to "thread_mode" as ->mode is a mojolicious method

And we don't want our helper to conflict.
Tests for the thread_mode helper
Tests for the indent/unindent and related helpers
TODO for /cgi to redirect to the correct place
Tests for the "human_time" helper