Added some advanced and real-time app performances metrics

* we now display Ajax loadings stats & app performances metrics
* added a bunch of "X-Perfs-*" HTTP headers
* this can be enabled and disabled with the config flag "debug.perfs-tracking"
* added "scroll to top" on Ajax content update
* misc optimizations & bugfixes