Move API specific variables from main to Serverapi.  This will ease porting to future releases, as well as solve the issue where no one seemed to care if we checked the mono variable before we initialized it.