[master] Use ngResource instead of http