Change the way mediaSet is created

This is done to allow release it when is not necessary and avoid
problems releasing static objects.

Change-Id: I9b59eb82719e4653ec578a33d3aaad854c508a0e
Factory: Force adding a session while creating an object

Change-Id: I533c1be8bf168646e8ee5361fb48536f2c99dcaa