added phantom js for headless mocha. added static dev server, struct refactor