Moved over to using a promise api
Added configuration to angular module