Moved the api message records Configuration and Resource to their own directory.
Moved the supervisor state to a better place.
Collapsed the internal layer for supervisor/api.