Represent input as a dictionary.

Input is now represented as a dictionary. In this dictionary, content is
represented as a list of tuple('block-type', 'content')'s; and anchor
expansions are represented as a dictionary of dictionaries.