Replace PHP interface with Flask based Python interface

Use jinja2 for templating and redis for getting unique ids
Merge pull request #3 from yuvipanda/master

    Replace PHP interface with Flask based Python interface