added recompilation of templates to NodeBB Reloading - #2010
removed commented-out code
better error messaging when js fails to compile when reloading
closes #2017
closes #2021
closes #2020
closes #2022