Major code refactorings.
Uglified JavaScript.