Fix a variety of array references that caused errors and define $tabs as well

I hit these immediately upon install.  The fix to the plugin url thing perhaps wasn't an issue for you because of your wordpress domain/path config.  I was ending up with bogus urls w/out this fix.