Introduces some major code optimizations

I decided to bump up the version number to 3.1, because of some major
changes in the tracker (no changes in the JS, though)