Adapt to new Application API.
Merge branch '0.5.x' of https://github.com/substance/substance into 0.5.x

Conflicts:
	src/substance.js
Fixi fix.
Use pandoc_1_12 development branches.