Make CasperJS tests run with nested configs.

* Doesn't try to handle TESTON type configs yet.

Change-Id: Ic1f2e823f7dcfb047b4d1446156adf3064d1653d