[#1719] Dependency order management 

[Lighthouse #1719](http://play.lighthouseapp.com/projects/57987/tickets/1719)

[#1719] fix retrieving list of modules (filter lib, modules)
JPA : Add method isInitialized  to detect if JPA is initialized
JPA : define visibility to public for backward compatibility (local was public)