convert templates to tornado style.

Fixed a small bug in rabbitmq consumer which would overwrite the
timestamp.
Fixed handler to render the new templates