Created by: marten-de-vries
Also moves some shared logic to the parse_post function. Should fix #29 (closed).
parse_post