added validate method for runtime manager to ensure only valid context can use given runtime
refactor of Runtime to RuntimeEngine