     )
 
 # Save the project
-save_project = (socket, mesg) ->
+events.save_project = (socket, mesg) ->
     path     = userpath(mesg.project_id)
     bundles  = "#{path}/.git/bundles"
     resp     = message.project_saved


# Close the given project, which involves killing all processes of
# this user and deleting all of their associated files.
close_project = (socket, mesg) ->
    uname = username(mesg.project_id)
    async.series([
        # Kill all processes that the user is running.

            socket.write_mesg('json', message.error(id:mesg.id, error:err))
    )

events.move_file_in_project = (socket, mesg) ->
    user = username(mesg.project_id)
    async.series([
        (c) ->
