Code for the scotch.io tutorial: Submitting AJAX Forms: The AngularJS Way