Update to use Resolve on routes and Promises to deal with loading JSON data.