Install casperjs before npm install -d to avoid having grunt-casperjs install casperjs
Merge pull request #3262 from bp323/fixBuild

Fix UI build