logical_id and product in session

finished changing test and session to logical_id and handled API for product name/version in session
API for sessions should not be by logical id. Only by the server's id. The logical id is mainly for display (it is also optional, so in theory we could have a bunch of records with `None` as this value...