moved frontend js code to separate file; updated routing; introduced frontend lib folder
fixed variable setting and check;
fixed jslint checks
introduced isset helper
fixed user handshake
added todo