Merge the last of the non-threatening game specific functions together

 -merged all the game specific notes
 -portrait handling needs some revision anyway, so this is as good a time as any to clean up
Merge UpdatePortraitWindow function

  -split animated portrait handling into own function
  -actual animated portraits are still broken, see comments
Merge OpenPortraitWindow functions

 -fixes a bug with updating the wrong portrait id button in pst!
 -by necessity, implement portrait right click -> inventory in pst instead of iffing around it
  -for the sake of honesty, this isnt actually a feature of the original...but its nice