Merge pull request #8 from karmats/mats-fix-branch

Check that fragment is defined in directive
Exposing api and ctx in order to make advanced queries
Add more tests and use promises averywehere it is possible. Check deeper results.
Use promises everywhere it is possible, so errors are must better handled
Merge pull request #15 from dlecan/error-handling-refactoring

Error handling refactoring
Merged master, which included a rewrite of the api() and ctx() methods
Removing a forgotten console.log (oops), and adding some doc
Merge pull request #13 from rudyrigot/expose_api_ctx

Exposing api and ctx in order to make advanced queries
Added Sublime project files
Removed commented code
Complemented some comments.
Merge remote-tracking branch 'upstream/master'