Fixing Brackets & Spacing

Hi Paul,

I looked through the file and fixed some more brackets and spacing (see [Issue 1](https://github.com/pbearne/wp-author-avatars/issues/1)). I did my best to interpret the code and make sure I wrapped everything in brackets correctly but more comments and more abstraction would have been helpful. It would be easier to read if you broke out certain pieces of login into their own function.

I double checked and the plugin works fine with my settings but there may be some edge cases. I would encourage you to run a few tests. Hopefully this sets you on the right path! :)