Update code to work with latest Flask-Script, remove unused urls