WIP, moved all js files to new format, still not tested. View refs in templates need to be renamed to ES6 style.

Signed-off-by: Alessandro D'Aquino (elara) <alex@midokura.com>