Refactored CreateRemoteDriver class and moved REST API code into new directory