app/js/app.js: Encode requests with x-www-form-urlencoded

Django doesn't handle application/json, so use Ezekiel Victor's handy
transformation function [1].

[1]: http://victorblog.com/2012/12/20/make-angularjs-http-service-behave-like-jquery-ajax/