Ensure libraries are present when running phantom.js test

Rewrote bower command, ensured that bower libraries are installed and concatenated before test suite is executed

Fixes #1702