feat(autocomplete): Remove requirement for the source option to return a promise

Use $q.when to remove api restriction that the result of the source option
must be a promise. This is a simple non-breaking addition which makes the
API more simple to use.

Closes #237
test(autocomplete): Refactor test case
Merge PR #238