Use API for publications.
Merge branch 'chronicled' of github.com:substance/composer into chronicled

Conflicts:
	index.html
	src/session.js