Adding rubocop style checking

I added rubocop for style checking and linting. This PR also features all auto-fixable changes by rubocop, mostly incorrect indentation, redundant braces and a change of regex-reference-styles.

```rubocop-todo.yml``` is a file to ignore all still existent style violations - the idea is to remove them one by one and fix the respective issues later.