Reportstate 11

Provisionally fixes #11
Opening PR with the expectation that there is probably a bit more stuff to do, but some comments would be appreciated.
This would, however, result in `ports` being included as a key in each `Application`'s YAML output, even if its value is an empty list - is that what we want to do? If so, I'll update this in the next commit.