Integration and unit testing for platformstack

Adds integration tests and 100% unit test coverage. I didn't bother trying to
simulate some of the more elaborate things like the ELK stack search that
happens. But it's a big improvement over what we (didn't) have before.