mostly formatting and comment removal

* Added .editorconfig (plugins don't always support all these options but it's better than nothing)
* Removed all comments - they were either describing what (instead of why) or were just beginner stuff, 
* removed commented out code (that's what github is for)
* Removed empty actions from controllers (it's enough to have a view template)
* Refactored a few methods
* Corrected indentation. For `private` and `protected` keywords I'm going with a convention used by Rails to outdent them with space before and after
* case statements are evil - replaced with hash lookup

I'm sure I've missed some but it should make future commits less noisy with whitespace changes.