Wow! I just looked at the casperjs api, and it looks amazing!! Tons of great utilities to help you work with the DOM.
This could be great, since i would like to implement the json wire protocol for phantomjs, and using casperjs will be of great help for that task! :)