added sanitizeSession() convenience function (this is normally called fromSession()) and sanitizeServer() method for $_SERVER global