Added upload to amazon S3
fixed joinSession.php