Convert gist metadata into post metadata

* Add comments to differentiate between different types of Gist data. Need
  to follow up on this and rename other functions
* Restructured `postTypeInternal` to make debugging easier
* Fixed a few bugs with data being passed into the gistMeta->postMeta
  converter