Massive upgrade to the gui codebase, small changes to pirateTracks and user_context to accomidate.