New: add space-before-blocks rule (fixes #1277)

`isSameLine` and `isSpaced` is copied from `space-in-brackets`.
Can we extract this somehow to share those functions between rules?