fix bug setting hostport as an app property
allow user to set value if req.session to an object (without losing prototype)