File cleanup

- Remove trailing whitespaces, again.
- Try not to get too long lines (max should be around 80)
Add RSpec configuration options
Change testing for JSON to JSON objects