Create state

This replaces the pid and started files that are written in favor of one file serialized currently as json to record the container's state