style(core): make code formatting more consistent and legible

This commit changes the code formatting of the Angular.js core to adhere
more closely to Google's JavaScript style guide. This includes adding
whitespace and blank lines where needed too. It also removes some
unused variables, while renaming others to provide more clarity as to
what it does (e.g. `ii` to `attributePrefixLength`).