Added global save function

Currently creates a console log of a JSON object with the username and
the array of nodes associated to it