improve casperjs types

* add return types
* add some 1.1 functions

A lot of things are still improperly typed as any
works with noImplicitAny now, except for phantomjs dependency
Merge pull request #1170 from docmunch/casper-types

improve casperjs types