Add special session handling for selectedModel

Add special session handling for selectedModel to avoid leaks through
session
Remove spaces at end of line in application.ini