Added a hook: action:user.delete

Allows plugins to access the uid of the user being deleted.
Merge pull request #1804 from Fastinyoh/master

Added a hook: action:user.delete
closes #1805
purge topic if it's the post is purged in that topic
closes #1797
undo