Added grunt task for code coverage with karma and istanbul; reorganized grunt tasks.