AngularJS: Trim todos on save

Shame on us, the AngularJS example was not spec-compliant! :)

I enhanced the test suite to check that Todos are trimmed when added and edited.

@stephenplusplus Could you take a look that I didn't make any silly mistakes?