feat #445 leading tabs detection in the code

This is a refactor commit, formatting test files that were not
formatted at all, or had some lines unformatted.

Additionally, a grunt task is added to prevent checking in unformatted
files in the future.

Close #445.
wip more formatting (touch)