Frontend and backend JavaScript has been fully reconstructed

There's still some cleaning up to do in the PHP code, which is in need
of a small restructuring itself. The CSS files as well could be moved
into a single one by using LESS.

The deprecated functions are no longer used.