Project class: add method to manage locale exception

Moved code from Bugzilla to manage exceptions
Clean up some views