bug fix, cleanup,  and only send cookie if cookie is declared
Merge branch 'incoming-cookie' of https://github.com/rjduffner/casperjs-spider into incoming-cookie