Modifying controller to use HTTP service. Keep in mind the code changes to pass the scope and http vars into the array to protect from minification