Added complex entity to remote server- first iteration
Refactor compex entity code into multiple methods for readability.
Finished all complex entity support for remote cache