Login & sending predictions

var data =
{
Type: "sendPredictions",
Predictions: predictions
};
conn.send(JSON.stringify(data));
Revert "Login & sending predictions"

This reverts commit 559a738fdf44c87a2162bbf9515cf58f9cf3bad0.
Revert "Revert "Login & sending predictions""

This reverts commit a03c5c78048e63af3dd686cffc1c5e31c20124ab.