Mechanize agent configurable through the dsl

In order to inject custom cookies or use a special user agent
- move the agent instanciation to the top level api clas
- add an 'agent' method to the dsl to customize it
- add a test
Version 0.4.0