Add headless mode
Merge branch 'develop' of https://github.com/snap-project/snap into develop