Umh, rewrote everything

1. Updated to angular 1.2
2. Updated to use with karma 0.10.6
3. Changed the way it handlers promises