Clear settings on department deletion

Clear ticket routing settings on topic, email or filter tables on department
deletion.
Merge pull request #792 from protich/issue/cleardeptsetting

Clear settings on department deletion

Reviewed-By: Jared Hancock <jared@osticket.com>