Added permission nunjucks custom tag
Fixed minor typo
Added permission tag
Whitespace
Asynchronized permission checks
Use underscore notation for table column names
Promisify hasPermission
Check for ID before attempting to process
Promisify hasPermission dummy
Use q, async