Working server with Node js and the authentication work by Frederik Nakstad https://github.com/fnakstad/angular-client-side-auth.
THe node server is working with ect instead of Jade because I would rather use HTML and not jade files for an angular project. Ect is also supposed to be signficantly faster than jade.