Coalesce a number of fixes from various forks.

In order to get MGSplitViewController working in my app i had to pull some fixes from various forks and then add a podspec so i could pull the pod from my fork. This pull request contains all the fixes i pulled from their various sources.