Dynamically define methods in class definition for Agent
Upgrade RSpec
Add Agent spec
Refactor Agent class
Update spec_helper
Update Navigator class and spec to use the new Agent methods