fixed XSS vulnerability

fixed XSS vulnerability escaping pseudo and message text
Update the project to work with newer versions of Jade and Express

Change-Id: I22a653f0a961da195346fc981751fcd0431bc27f