Fixes #11 and #20
Use angularjs form validation
Add Discounts resource