What happend after this: I created a “remote part” to contain as much of the implementation as possible. You can find it at:
There are instructions in the README.md on how to use. Note that there is still a lot of boilerplate code which is currently required due to problems with snapcraft, such as the launchpad bug #1766878