many changes

Added on term scheduler class, woking on generating schedules. Added
term as cookie to pages