Changed timetable to use a FragmentStatePagerAdapter

Also cleaned up code, made the Adapter take a Context rather than a FragmentManager