Switching to mysql2
Fixed deprecation warnings; added missing js-libs
Fixing more deprecations;