Stats refactoring to support regions; data model updates to support
regions; heartbeat and AppInstance refactoring