Added basic Document controller and flash messages