converted app to tornado from flask
completely rewrote graphing code
removing commented code