add grunt publishdocs task to publish the docs to the gh-pages branch
add grunt task for karma unit test runner
add unit test helpers and tests for existing functions