add bin/juju-dotty.py, minor bug fixes, put bootstrap CSSen back, add stateCtrl