Template,PaymentManager + stats.py(scratch)

Added base template(not sure if I have to add it in some config file,
please let me know if I have to) and modified Payment model - added
PaymentManager for future .
Also started working on stats.py from scratch - old version didn't quite
met my expectations, and right now I'm trying to use old app as a base
to create some new options.