startFileProtocol and sessions folder

startFileProtocol can be also null to indicate local file.
Create sessions folder if it doesn't exist.