Clean Up

- updated karma to 0.12
- refactored service methods to external service
- added test for opening the add election dialog