Implements is-helper

closes #2249
- Added context to res.locals
- Added context aware is helper
- Added unit tests