move run-time dependencies to Bower
port some initial unit tests over from platform repository