Start of an org-file parser.
Seems to parse basic org-files OK now, but I have my doubts...