Bower config for future registry and some code reformatting