Refactored session access

Encapsulated all access to sqlalchemy.get_session
This is needed for further refactoring of session handling

Change-Id: I35c64b69c7bde80713ca1f0e7f7f83bd57493668
Merge "Refactored session access"