refactored code to accept list of objects

The objects should contain functions that will become the keywords
Refactored tests to reflect the changes done to RemoteServer