add test support for node persistence server

tests run using mocha and should
coverage reports merged with front-end results

Squashed commit of the following:

commit f1ad3a6a30968ee73c413e39725249468248874d
Author: Deiwin Sarjas <deiwin.sarjas@gmail.com>
Date:   Mon Apr 28 00:38:39 2014 +0300

    fix coverage reporting for code climate

commit 695ffdb4919f9829059ed279f0036394d308fb0c
Author: Deiwin Sarjas <deiwin.sarjas@gmail.com>
Date:   Mon Apr 28 00:11:43 2014 +0300

    fix jshint for config files

commit 7c6de330fecda8bc295d380173cab18e225b7922
Author: Deiwin Sarjas <deiwin.sarjas@gmail.com>
Date:   Mon Apr 28 00:07:31 2014 +0300

    sleep in e2e test to avoid strange results

    Yes, it's not ideal, but I have no idea how to make it work without the ignore snync with the clock.
    There is an option to use $interval with 2nd parameter of 1 instead of $timeout, but that has to be looked into

commit 7dcdd505dfd8af33ac7cc9daba9fc06c783430d7
Author: Deiwin Sarjas <deiwin.sarjas@gmail.com>
Date:   Sun Apr 27 23:56:53 2014 +0300

    disable recursive search for lcov.info

    this way it is ensured that the correct lcov.info will be grabbed

commit c651b9b84e1769a7466f2880b15c9daf0406f1a5
Author: Deiwin Sarjas <deiwin.sarjas@gmail.com>
Date:   Sun Apr 27 23:40:17 2014 +0300

    fix jshint warnings

    jshint stuff is now duplicated, though

commit 3c1811f3c4510543e07a75e87296a0b658373988
Author: Deiwin Sarjas <deiwin.sarjas@gmail.com>
Date:   Sun Apr 27 23:39:50 2014 +0300

    revert to karma-coveralls

    commit id and everything wasn't porperly pushed to coveralls

commit 7e08a3d704bce80e36556037ffc670177f766a7b
Author: Deiwin Sarjas <deiwin.sarjas@gmail.com>
Date:   Sun Apr 27 23:13:24 2014 +0300

    add callback for saucelabs

    got an error in Travis otherwise

commit 6a711be6fc96e0deac84d7d9804a06af46e0b65a
Author: Deiwin Sarjas <deiwin.sarjas@gmail.com>
Date:   Sun Apr 27 22:58:51 2014 +0300

    merge lcovs and report to coveralls

commit a4a71bac7531f0ecf6d1a3832dbc9b66091b2772
Author: Deiwin Sarjas <deiwin.sarjas@gmail.com>
Date:   Sun Apr 27 22:52:25 2014 +0300

    fix all paths in lcov for coveralls

    remove ./ prefix for files

commit 6ac32109b04fa8cc60b4e6b456a5ab3d7dbddc2a
Author: Deiwin Sarjas <deiwin.sarjas@gmail.com>
Date:   Sun Apr 27 21:50:31 2014 +0300

    fix mocha lcov output paths with sed

commit b1b1bd4361241bc14325c6c5eeec9a54521ffaa2
Author: Deiwin Sarjas <deiwin.sarjas@gmail.com>
Date:   Sun Apr 27 21:40:52 2014 +0300

    add clean task

commit e06ab7cebf4115428e0e098bc8cab7f1c5146f79
Author: Deiwin Sarjas <deiwin.sarjas@gmail.com>
Date:   Sun Apr 27 21:37:46 2014 +0300

    move node files to src folder

    also add initial coverage for node stuff.
    paths need to be fixed and lcovs need to be merged

commit a9e0269fec4e85c54706d3913beb1fb9aeb95a2d
Author: Deiwin Sarjas <deiwin.sarjas@gmail.com>
Date:   Sun Apr 27 17:08:01 2014 +0300

    use express to statically serve content

    create dummy test to test mocha and coverage reporting

commit 4d3b05a8a07e5a0d42b2d356ad3d7afb04813300
Author: Deiwin Sarjas <deiwin.sarjas@gmail.com>
Date:   Sun Apr 27 17:01:08 2014 +0300

    fix jshint for mocha

    remove .jshintrc

commit d8b5025ff4d914877f9c5cf10cbc609114863e0a
Author: Deiwin Sarjas <deiwin.sarjas@gmail.com>
Date:   Sat Apr 26 16:02:08 2014 +0300

    set up grunt for mocha tests

    coverage untested

commit 8a19ccf8d2406830070b3b8dd713e39e588c98f4
Author: Deiwin Sarjas <deiwin.sarjas@gmail.com>
Date:   Sat Apr 26 15:27:48 2014 +0300

    refactor grunt config

    now tests are configured in a single named lambda and so on

commit bf46ff1187f1baf773464a66b6a8c24657e3a0f4
Author: Deiwin Sarjas <deiwin.sarjas@gmail.com>
Date:   Sat Apr 26 14:31:22 2014 +0300

    rename app.js to angularRoot.js to avoid confusion

commit d933f1534fb2e982393b7cf3c752ad5d0059874e
Author: Deiwin Sarjas <deiwin.sarjas@gmail.com>
Date:   Sat Apr 26 14:28:23 2014 +0300

    move client tests to a separate folder

    so that karma could run client tests and we could use mocha for server tests