Cache results of available languages

This function is about 8 times calles for every single page call, when caching this variable I was able to gain a small performance improvement from 20,512 µs to 630 µs profiled with xhprof

Surely, this is no gigantic gain but if we would do that for every function out there...

Before:
![screen shot 2014-11-27 at 00 07 35](https://cloud.githubusercontent.com/assets/878997/5210254/7e443d8a-75c9-11e4-9087-7d071a082666.png)

After:
![screen shot 2014-11-27 at 00 08 06](https://cloud.githubusercontent.com/assets/878997/5210253/7e43d44e-75c9-11e4-8538-8221bc117d79.png)