misc Bottle helper scripts & classes