use es6 Promises in directives
Merge pull request #4 from dmitriiabramov/q-to-es6-promises

use es6 Promises in directives