fixing some issues with ambient lighting and level open/save
logging out user per javascript when logged out