move demo functionality over to Flask, remove Bottle