upgrade to jade 0.31.x + templates fixes + appCongig helper renamed to getAppConfig