Fixed bugs in approvals, fixed #115.

Fixed approvals bugs - borked the emailing system last time.

Added the email on application withdrawal.