Add unregistration method of app_on_message

- Add unregistration method of app_on_message
- Use hash code of regular expression object as key of on_message dictionary