Streamline JS workflow

Our own JS files (/js) are included automatically and libraries (/lib) needs only to be
symlinked once (/lib/autoload) to be included correctly everywhere (dev mode, build
process and testing)
Restructure JS files