Relative time periods support for other than "now" end times

Update timepicker directive to enable relative periods with custom end time.
It closes #2394