Code refactored in anonymous closure style and minor example fix

Now service methods can be used in promises like this:  
```` javascript
$q.when(promise).then(ngProgressLite.done, ngProgressLite.done);
````