improve casperjs testrunner

Change-Id: I782362a36d188220d75710181c3b942344b2ca3b
Reviewed-on: http://review.couchbase.org/34260
Reviewed-by: Pavel Blagodov <stochmail@gmail.com>
Tested-by: Pavel Blagodov <stochmail@gmail.com>