Added a method to get the active switch at a specific time. Returns NULL...

... if there is no active switch at that time.