Add notification helper

Render a flash notification.
Move register method to main file