 
 #Remove a user
 RemoveRequest = (response, parsedUrl, userName) =>
-	if (parsedUrl.hasOwnProperty('query')) 
+	if (parsedUrl.hasOwnProperty('query'))
 		parsedQuery = querystring.parse(parsedUrl.query)
-		if (parsedQuery.hasOwnProperty('deviceId')) 
+		if (parsedQuery.hasOwnProperty('deviceId'))
 			deviceId = parsedQuery['deviceId']
 			file = path.join(subscriptionDirectory, parsedQuery['deviceId'])
 			if(path.existsSync(file))

	]
)

#serverPort = 12243 #production
serverPort = 12253 #development

#Subscribe a user, or update an existing user
SubscribeRequest = (subResponse, userName, parsedUrl, requestData) =>

	}
	https.createServer(options, handleServer).listen(serverPort)
	logger.info("Server running at https://localhost:" + serverPort)
	https.createServer(options, handleServer).listen(serverPort2)
	logger.info("Server running at https://localhost:" + serverPort2)
else
	http.createServer(handleServer).listen(serverPort)
	logger.info("Server running at http://localhost:" + serverPort)
	http.createServer(handleServer).listen(serverPort2)
	logger.info("Server running at http://localhost:" + serverPort2)

logger.verbose("rootPath = " + rootPath)
logger.verbose("logPath = " + logPath)
