Changed Controller As title for the template. Replaced config with $http...

... for the Factory template (works out of the box now)