Committing my local changes.  Fixes some issues where it wasn't working in Unity 4.5.
There seem to be a lot of changes here I didn't make.  Must have been differences from where I first grabbed XUPorter to modify.