Use bower for JS dependencies

Update tests to use simplified test folder structure.