Continue refactoring rmn agent.
Add some new methods to curl class.