Open entity manager in view+refactorings

Minor imports refactoring
Added the open entity manager in view pattern (Filter+ThreadLocal EM),
all modules must change the way they work because entity manager are
now short-lived
Support for short-lived entity manager

Handle exception while closing the entity manager.
Handle no-result exception when deleting notification objects.