Added tests to verify the generated AngularJS partials.

Also refactored the FTL files into more compact units, for the purpose of unit-testing.

Added a callback function to display the generic error message in the event of an error encountered during removal of a JPA entity.