Implement process_titles.

Added a funtion that parses the heading level and outputs corresponding html
tag. Also planned complete set of functions.