fixes, updates, refactors

* make environments a type
* update to bootstrap 3.0rc1
* reduce some complexity