Added general purpose tear down method for deleting entities.

There was no way to cleanly remove citation (or any other entity). Added
delete function to entity base: removes all links so can delete safely,
then deletes.
Merge pull request #13 from cherryn/software-testing

Added general purpose tear down method for deleting entities.