remove tricks from global scope

Signed-off-by: Benjamin Chodoroff <ben@theworkdept.com>
offer isServer to templates as bool