Fixed errors layout page.
Fixed dispatcher 500 error handling at development mode.
Added dependency creation between widget and module.