bootstrap conversion WIP, refactor some angularjs logic, bindings