[composer] add svg export with layers

@nyalldawson Squashed all commits from work in #1092.