Revert "Merge refactor/#87 into master this will close #87"

This reverts commit bea27c1ef7323eb968c6c848a31f8cea226cf47c.
Squashed commit of the following:

commit 606165af95855f6aab81d90b381f0c36cefa9018
Merge: c0689cd 86848ce
Author: Jörg Weber <weber.joerg.h@gmail.com>
Date:   Sat Oct 4 22:58:33 2014 +0200

    Merge branch 'refactor/#87' into refactor/#87_2

    Conflicts:
    	app/js/services.js
    	test/unit/servicesSpec.js

commit 86848ce3ac22bf26abec517e45b3ef9c0f699a92
Author: Jörg Weber <weber.joerg.h@gmail.com>
Date:   Sat Oct 4 22:26:06 2014 +0200

    * add menu directive test

commit 474c6a627c3d7aec73a40e4520d536aed5052c1c
Author: Jörg Weber <weber.joerg.h@gmail.com>
Date:   Sat Oct 4 22:25:53 2014 +0200

    * add formatted-date directive test for custom formats

commit 3e0842a045e7a26231d60bd1a0e3ebaf473c7094
Author: Jörg Weber <weber.joerg.h@gmail.com>
Date:   Sat Oct 4 22:25:25 2014 +0200

    * add menu directive controller test

commit 287edc27c139a8ca74d01805c393f1e09cd32f71
Author: Jörg Weber <weber.joerg.h@gmail.com>
Date:   Sat Oct 4 22:25:02 2014 +0200

    * code format

commit dbf333f3effb022fb6b655ddfd9c2c1319ddf32d
Author: Jörg Weber <weber.joerg.h@gmail.com>
Date:   Sat Oct 4 21:24:19 2014 +0200

    * define menu directive controller as app controller
      instead inline for better testability

commit ff74ed62c677d1a9ae684b4619cd21ef03c72e4f
Author: Jörg Weber <weber.joerg.h@gmail.com>
Date:   Sat Oct 4 20:43:46 2014 +0200

    Add tests for:

    * RootController
    * LoginController

commit eade5f43498bb988716efce3afe425d396e12a03
Author: Jörg Weber <weber.joerg.h@gmail.com>
Date:   Sat Oct 4 20:43:14 2014 +0200

    * ignore code coverage for ‘WelcomeController’

commit 926c8ac13cef01efc0e02e85264b68112e9ffeea
Author: Jörg Weber <weber.joerg.h@gmail.com>
Date:   Sat Oct 4 19:51:52 2014 +0200

    * add ‘use strict’

commit 58724da653e2dd2420ec98c43d04cb1e71e75ce5
Author: Jörg Weber <weber.joerg.h@gmail.com>
Date:   Sat Oct 4 19:51:40 2014 +0200

    * set access token in comment test to avoid github
      lib errors while testing

commit f24a05085c4dc5ca1674dcfc1498c6b9bdce9fc7
Author: Jörg Weber <weber.joerg.h@gmail.com>
Date:   Sat Oct 4 17:26:59 2014 +0200

    * change filter list state and url

commit eb6c90ac62179899c567f717c573c92c9ac63031
Author: Jörg Weber <weber.joerg.h@gmail.com>
Date:   Sat Oct 4 17:06:05 2014 +0200

    * fix storing author in FilterController

commit bed98b051fe21aa81d802f413ab9b4a1018ac89a
Author: Jörg Weber <weber.joerg.h@gmail.com>
Date:   Sat Oct 4 13:16:54 2014 +0200

    * fix tests
    * remove CommitListConroller test

commit a9884042db17964f7483e537d2271d5530637fac
Author: Jörg Weber <weber.joerg.h@gmail.com>
Date:   Sat Oct 4 12:48:39 2014 +0200

    * add oauth handling to build process

commit d0ff8938d73bf5d686c607d8523cff33b3a8d4e3
Author: Jörg Weber <weber.joerg.h@gmail.com>
Date:   Sat Oct 4 12:23:42 2014 +0200

    * use controller for menu directive

commit 15ed3d5adc201f92adad1f577eef7bac1b176ae6
Author: Jörg Weber <weber.joerg.h@gmail.com>
Date:   Sat Oct 4 12:23:29 2014 +0200

    * use onEnter handler for all states to check
      if user is authenticated, if not switch state
      to welcome

commit f7254fc4a0b7ef63f00ed54c2cc027b5df71b277
Author: Jörg Weber <weber.joerg.h@gmail.com>
Date:   Sat Oct 4 12:22:24 2014 +0200

    * code formatting

commit 6fab2fc8b1683800d6226e7af401b22fa0df2dbc
Author: Jörg Weber <weber.joerg.h@gmail.com>
Date:   Sat Oct 4 12:22:07 2014 +0200

    * add a welcome state to routes
    * switch to welcome state after logout

commit d4e93c5dcd8182a60d22c4641b721aa9be14ff68
Author: Jörg Weber <weber.joerg.h@gmail.com>
Date:   Sat Oct 4 12:21:00 2014 +0200

    * combine both menu templates

commit d594a237628989769dbae7c8ca20549e1c9e41a9
Author: Jörg Weber <weber.joerg.h@gmail.com>
Date:   Fri Oct 3 21:15:48 2014 +0200

    Separate oauth callback handling from main application

    * add oauth callback page
    * remove weird oauth callback handling from root controller
    * change oauth callbck url in options for dev mode

commit d576bad945824bbc7d37a94b6a85411e53caa243
Author: Jörg Weber <weber.joerg.h@gmail.com>
Date:   Fri Oct 3 19:02:38 2014 +0200

    * add approved commits to commit list directive

commit d3e58a7ba7c7072583556accdcdb439eb7be28ba
Author: Jörg Weber <weber.joerg.h@gmail.com>
Date:   Fri Oct 3 18:41:45 2014 +0200

    * add own controller to commit list directive
    * pass filter and commit list to commit list directive scope

commit 1d21e90e8681990c23c93846444eeacf98c971a7
Author: Jörg Weber <weber.joerg.h@gmail.com>
Date:   Fri Oct 3 17:33:55 2014 +0200

    * move commit list directive to own file

commit 246eec0e030a02f8a5ac0781abab6d703af28af0
Author: Jörg Weber <weber.joerg.h@gmail.com>
Date:   Fri Oct 3 17:27:45 2014 +0200

    * remove obsolte commit list controller

commit be41efb1fc8c1c13c19e3e6b5238c9fc1ed21a3c
Author: Jörg Weber <weber.joerg.h@gmail.com>
Date:   Fri Oct 3 17:26:15 2014 +0200

    * use html5 conform attribute naming

commit 2dc0332e64e55fc09915b3e3404f0f809f38bc91
Author: Jörg Weber <weber.joerg.h@gmail.com>
Date:   Fri Oct 3 17:21:48 2014 +0200

    * fix commit list template to work with the new directive

commit e7999398a3abd82ed60a3a430ac8ae1491d6db39
Author: Jörg Weber <weber.joerg.h@gmail.com>
Date:   Fri Oct 3 17:20:52 2014 +0200

    Create a directive for the commit list now we can
    reuse the commit list

commit 4168039046102dc11a80f58c8723621421e524fb
Author: Jörg Weber <weber.joerg.h@gmail.com>
Date:   Fri Oct 3 17:19:18 2014 +0200

    * replace the commit list controller and also the commit list template
      with the filter controller and the filter template

commit def7a59a359b8cc6e4a0c30a09fbe9c406dc58b4
Author: Jörg Weber <weber.joerg.h@gmail.com>
Date:   Fri Oct 3 17:18:25 2014 +0200

    * edit and add filter now uses the filter.html template

commit 8aa1d4b63832d2491c8229e2c759ffe1041a5bfe
Author: Jörg Weber <weber.joerg.h@gmail.com>
Date:   Fri Oct 3 17:16:01 2014 +0200

    * remove obsolete module injection from commit header directive

commit 5e0b02c48a822964500242b4c03e1788106c272d
Author: Jörg Weber <weber.joerg.h@gmail.com>
Date:   Fri Oct 3 17:15:21 2014 +0200

    * add caching of repositories and branch fetching in service methods

commit 2facc5039c33200173e79e547bd2553eeb5e72e0
Author: Jörg Weber <weber.joerg.h@gmail.com>
Date:   Fri Oct 3 17:14:02 2014 +0200

    * code formatting

commit 06b79f519dd713a6b36d9d84d2738a2439ca57b1
Author: Jörg Weber <weber.joerg.h@gmail.com>
Date:   Fri Oct 3 17:13:23 2014 +0200

    * rename addFilter.html template to filter.html

commit b045d26ab7e38b1b52495507c275578bcf8cfa39
Author: Jörg Weber <weber.joerg.h@gmail.com>
Date:   Fri Oct 3 17:12:53 2014 +0200

    * add a comment to Filter to investigate commit
      handling if commit has no author attribute

commit 790e337e054a04c97914e52463739832ef6e943d
Author: Jörg Weber <weber.joerg.h@gmail.com>
Date:   Fri Oct 3 17:11:33 2014 +0200

    #87 Refactor filter controller

    * filter controller now takes care if we want to
      display an existing Filter or a new one
    * don’t set $scope attributes before every required
      call is done

commit e53bd9a88ffeca5ad916951fdf0660af13bee903
Author: Jörg Weber <weber.joerg.h@gmail.com>
Date:   Fri Oct 3 17:08:11 2014 +0200

    * add commit caching for a single page request to filter
    * add methods to get a contributor and a branch list
      of the current repo to filter
    * reset the commit cache every time a change is
      happened to the filter

commit 810ac2b5c970074fb1bcf9d5368542d5ceaefa42
Author: Jörg Weber <weber.joerg.h@gmail.com>
Date:   Fri Oct 3 17:05:05 2014 +0200

    * remove obsolete contributor attribute and it’s
      setter from Filter

commit 4619eaaea6c71f7772e46782c90c07220025e59f
Author: Jörg Weber <weber.joerg.h@gmail.com>
Date:   Fri Oct 3 17:04:03 2014 +0200

    Change the filter factory to be more a provider.
    The Filter provider now initialises a Filter and
    put them into a local cache object. With this we
    avoid to create a new Filter object every time
    we need a Filter. In addition, now we are able to
    use some caching mechanism for commit fetching.

commit 2d545a5c81abfd102b24eff0b24b529a3c9565d8
Author: Jörg Weber <weber.joerg.h@gmail.com>
Date:   Wed Oct 1 11:03:08 2014 +0200

    * disable sauce labs e2e tests for now

commit eed88fdb774944c0bc05db63621b260195f7407d
Author: Jörg Weber <weber.joerg.h@gmail.com>
Date:   Wed Oct 1 11:02:31 2014 +0200

    * use better readable font for commit view

commit 7fcecb9b5dcd7265a305889ec80a5fbc285fa803
Author: Jörg Weber <weber.joerg.h@gmail.com>
Date:   Wed Oct 1 02:13:04 2014 +0200

    * try sauce labs part3

commit 74cc0ab89169f308a3a1520fbf5635dd36a311a0
Author: Jörg Weber <weber.joerg.h@gmail.com>
Date:   Wed Oct 1 02:07:39 2014 +0200

    * try source labs part2

commit 388e5dab440155dcb60a8962580f08d4c7e0d516
Author: Jörg Weber <weber.joerg.h@gmail.com>
Date:   Wed Oct 1 01:51:30 2014 +0200

    * try source labs part1

commit 2895ac9f8e7d87071a25e02f6c283a9c6021a7b4
Author: Jörg Weber <weber.joerg.h@gmail.com>
Date:   Wed Oct 1 01:38:00 2014 +0200

    * fix typo

commit 2d17e79747bd538722c4b2d4352787782635d970
Author: Jörg Weber <weber.joerg.h@gmail.com>
Date:   Wed Oct 1 00:44:29 2014 +0200

    * move source credentials to args

commit 1b020b16871ab97d97723f797c2bf0e0d25e841f
Author: Jörg Weber <weber.joerg.h@gmail.com>
Date:   Wed Oct 1 00:39:03 2014 +0200

    * use source labs as testing platform for e2e

commit 7965bdb9688fcfda82c3a66a136f5449018a6643
Author: Jörg Weber <weber.joerg.h@gmail.com>
Date:   Wed Oct 1 00:20:04 2014 +0200

    #87

    * enable e2e tests for travis

commit 9af416463996ba8cf68056170ae43aef4b4b3ef0
Author: Jörg Weber <weber.joerg.h@gmail.com>
Date:   Wed Oct 1 00:16:17 2014 +0200

    #87

    * enable e2e tests for travis

commit 5f06755d7098d0b3e37fddbec4ca88c6e4c9ee66
Author: Jörg Weber <weber.joerg.h@gmail.com>
Date:   Tue Sep 30 23:51:02 2014 +0200

    * add .tmp folder to .gitignore

commit b0af6a631348eef60f2eb34c9882cd90d19a97e8
Author: Jörg Weber <weber.joerg.h@gmail.com>
Date:   Tue Sep 30 23:50:34 2014 +0200

    #87

    * change global key to vim style

commit 08fcc4f94f12777249d2b7f07da1d5604228aadc
Author: Jörg Weber <weber.joerg.h@gmail.com>
Date:   Tue Sep 30 23:50:11 2014 +0200

    * formatting

commit 6f20f7d240403d7b01515165cb34c30c82e5adf5
Author: Jörg Weber <weber.joerg.h@gmail.com>
Date:   Tue Sep 30 23:50:02 2014 +0200

    #87

    * fix ‘enter’ key behaviour in commit list if no commit is selected

commit cc4a7f3553464eec65e00dd1fe5e493f5eceedf4
Author: Jörg Weber <weber.joerg.h@gmail.com>
Date:   Tue Sep 30 23:49:16 2014 +0200

    #87

    * refactor key navigation in commit list
      set commitPointer initial to -1

commit dd9340e9fefdcbd124d46f37f391bfa32f19816a
Author: Jörg Weber <weber.joerg.h@gmail.com>
Date:   Tue Sep 30 23:45:11 2014 +0200

    #87

    * refactor dist grunt task
    * use ‘usemin’ grunt task

commit 3166089128b0edb3dac594af6c14bbc11808d0f2
Author: Jörg Weber <weber.joerg.h@gmail.com>
Date:   Tue Sep 30 20:17:31 2014 +0200

    #87

    * remove all requirejs dependencies

commit 539b82bddeb328dd03506c99e78294d707884426
Author: Jörg Weber <weber.joerg.h@gmail.com>
Date:   Tue Sep 30 19:42:01 2014 +0200

    #87

    * set coverage reporter back to lcov for travis task

commit cedd803ac0668bf167e7c60f85f204df00c87513
Author: Jörg Weber <weber.joerg.h@gmail.com>
Date:   Tue Sep 30 19:11:17 2014 +0200

    #87

    * remove blank line

commit ba364a1364133486abccf99317500cf1c645809f
Author: Jörg Weber <weber.joerg.h@gmail.com>
Date:   Tue Sep 30 19:11:05 2014 +0200

    #87

    * formatting

commit 61f1d1b6ccaabd8b3a712eb3a9718a009b33cabb
Author: Jörg Weber <weber.joerg.h@gmail.com>
Date:   Tue Sep 30 19:10:52 2014 +0200

    #87

    * remove obsolete include in service

commit ec3ba8c73504f54a134eda97b72e2d67ffee81c5
Author: Jörg Weber <weber.joerg.h@gmail.com>
Date:   Tue Sep 30 19:10:16 2014 +0200

    #87

    * add bin poly fill for PhantomJS

commit d5ca1ec60449ee6a8d59c7807716b1caff6785b9
Author: Jörg Weber <weber.joerg.h@gmail.com>
Date:   Tue Sep 30 18:38:59 2014 +0200

    #87

    * change options.tpl to angular module

commit d7d1dab877b7ba42aac2a136364063552dc43e94
Author: Jörg Weber <weber.joerg.h@gmail.com>
Date:   Tue Sep 30 18:30:59 2014 +0200

    #87

    * adjust karma travis conf
    * change coverage folder

commit 41b438a72f8249e6fed6d17ab82a9e1ea80d570f
Author: Jörg Weber <weber.joerg.h@gmail.com>
Date:   Tue Sep 30 17:53:40 2014 +0200

    #87

    * rewrite tests to run without requirejs

commit 067c723ea5eaf5e9d90901c2c10c64359e328a1d
Author: Jörg Weber <weber.joerg.h@gmail.com>
Date:   Tue Sep 30 15:35:07 2014 +0200

    #87

    * remove requirejs
    * adjust all files and remove define calls

commit 75ef3aa53d320434466e598543aa945ee430f30d
Author: Jörg Weber <weber.joerg.h@gmail.com>
Date:   Tue Sep 30 13:27:17 2014 +0200

    #87

    * remove Charts module

commit ff5ceff98f55f1cfd09067dd569964eea4d4653a
Author: Jörg Weber <weber.joerg.h@gmail.com>
Date:   Tue Sep 30 13:04:51 2014 +0200

    * remove unnecessary hotkey provider config

commit ab672d1384827add1b92aeb2a028dbe13bacc3f7
Author: Jörg Weber <weber.joerg.h@gmail.com>
Date:   Tue Sep 30 12:33:54 2014 +0200

    #87

    * add FilterController test file

commit 0abb4d3b9db439b4eebe68204dfc917cc4911d26
Author: Jörg Weber <weber.joerg.h@gmail.com>
Date:   Tue Sep 30 12:33:32 2014 +0200

    #87

    * fix e2e tests

commit 9e2cbf4eb09528d3a2e5b6f1d989d03bf56840bb
Author: Jörg Weber <weber.joerg.h@gmail.com>
Date:   Tue Sep 30 12:33:20 2014 +0200

    * remove obsolete karma conf file

commit f8ce9af658ef8a1e5a26769dd30dad43e9514c3f
Author: Jörg Weber <weber.joerg.h@gmail.com>
Date:   Tue Sep 30 08:19:17 2014 +0200

    #87

    * fix update commits by setting the correct filter since amount

commit 3944b01f7b6008aaf8846f8fd41cbfe40d0eacdc
Author: Jörg Weber <weber.joerg.h@gmail.com>
Date:   Mon Sep 29 23:05:08 2014 +0200

    #87

    * remove double set of filter owner

commit 0fdedac1d69b84e0233cfb72de2a13a3621fcdc4
Author: Jörg Weber <weber.joerg.h@gmail.com>
Date:   Mon Sep 29 20:52:51 2014 +0200

    #87

    * extend Filter specs

commit 1e6292a9d4dd7d1e0754cf0da3334996b139d78e
Author: Jörg Weber <weber.joerg.h@gmail.com>
Date:   Mon Sep 29 20:52:30 2014 +0200

    #87

    * set filter.options.meta.isSaved to false manually
      on change author because it doesn’t go through intern
      set method

commit 7ef027549926c9054853ebbdcebbcb157c5f0500
Author: Jörg Weber <weber.joerg.h@gmail.com>
Date:   Mon Sep 29 20:05:29 2014 +0200

    Revert "Revert "#87""

    This reverts commit 15e047b7abd9d093a8427d3367b952b232d8c03f.

commit 15e047b7abd9d093a8427d3367b952b232d8c03f
Author: Jörg Weber <weber.joerg.h@gmail.com>
Date:   Mon Sep 29 20:04:18 2014 +0200

    Revert "#87"

    This reverts commit a52a5172a135d26a5908b07a3dc3165de16e546f.

commit 5839097dd5d219b8f9638ed68cbc57dde6e36b21
Author: Jörg Weber <weber.joerg.h@gmail.com>
Date:   Mon Sep 29 19:58:59 2014 +0200

    #87

    * clean up dependencies

commit 9b9fe49069d0a86021aa0abe0ec75720ee76c551
Author: Jörg Weber <weber.joerg.h@gmail.com>
Date:   Mon Sep 29 19:58:59 2014 +0200

    #87

    * clean up dependencies

commit 78d07886e860ca61262176c47eb3eaef2c235e06
Author: Jörg Weber <weber.joerg.h@gmail.com>
Date:   Mon Sep 29 19:04:32 2014 +0200

    #87 Refactor/Simplify add filter

commit dd63fef66892fabafbf5fde148d8e4c0c4447b92
Author: Jörg Weber <weber.joerg.h@gmail.com>
Date:   Mon Sep 29 19:03:42 2014 +0200

    #87

    * add Filter.getContributorList to get list of contributors (authors)
      for the current repo/branch

commit 078d8f39c6ea49e5b7e1e88eba95c8654cccc931
Author: Jörg Weber <weber.joerg.h@gmail.com>
Date:   Mon Sep 29 19:02:43 2014 +0200

    #87

    * add Filter.reset

commit 49e22fab6c86cb8e2267d3e2e6190d9844e61b58
Author: Jörg Weber <weber.joerg.h@gmail.com>
Date:   Mon Sep 29 19:02:27 2014 +0200

    #87

    * add Filter.isSaved

commit 7db0133ab5da6cb693552c73b6b00e4334c943e9
Author: Jörg Weber <weber.joerg.h@gmail.com>
Date:   Mon Sep 29 19:02:06 2014 +0200

    #87

    * distinguish between ’string’ and ‘array’ in Filter.addAuthor

commit e864b9b12ef8df61af9040ec4ed65c41d7c2e5f2
Author: Jörg Weber <weber.joerg.h@gmail.com>
Date:   Mon Sep 29 19:00:42 2014 +0200

    #87

    * disable FilterController spec for now

commit dc06d980cc8b8fe7eec4487dc1c2623b38829f58
Author: Jörg Weber <weber.joerg.h@gmail.com>
Date:   Mon Sep 29 19:00:21 2014 +0200

    #87

    * add ‘getAllRepos’ as service
      (fetches all repos with organization and private)
    * add ‘getBranchesForRepo’ as service
    * add appropriated methods to getAllReposAndBranches worker

commit 8da0a17820faf48b02bd2672466dd569cd7610fb
Author: Jörg Weber <weber.joerg.h@gmail.com>
Date:   Mon Sep 29 18:57:33 2014 +0200

    * remove unnecessary github user data call when fetching all
      available repos
    * fix tests belong to this service

commit 488995ce84e1dc47d8f4bc677ae095ef1f90ce62
Author: Jörg Weber <weber.joerg.h@gmail.com>
Date:   Mon Sep 29 18:54:29 2014 +0200

    #87

    * add styling for angular-ui-select as import to main.less

commit bff75ee35d157b25729910fecb61f07dad2d032c
Author: Jörg Weber <weber.joerg.h@gmail.com>
Date:   Mon Sep 29 18:54:00 2014 +0200

    #87

    * add angular-ui-select as dependency
    * add angular-ui-select as app dependency
    * add angular-ui-select to require config