Org reader: Support code block headers, fix reading of block content

* Refactor code to read `#+BEGIN .. #+END` style blocks
* Support header arguments of source blocks
* Fix parsing of blank lines in blocks

The last two combined fix issue #1286.