Add support for State Preservation and Restoration support

This fixes ECSlidingViewController/ECSlidingViewController#217