Fix func tests tests/func/common/*
Restored some of the functional tests under tests/func/common/*
Linted + fixes to app.js
Linted