Tidy up the PageFlip and SDK interfaces, providing a singleton to the SDK