added user stats modal and helper functions

![2013-07-31_161735](https://f.cloud.github.com/assets/240542/889417/44bd45ac-fa1e-11e2-8a95-a00afa58b394.png)