[base] Repurpose old Resource class to ResourceStatus class.
[engine] Fix build dependencies on remote executor and fix intentation.