Start on trends.

- Intervals are pretty nice, especially with the Duration class pulling most of the work.
- Worked on the Trend 'abstract class'. Which is basically a lot of empty prototypes. I couldn't think of a better way to do this, other than maybe just getting rid of the Trend class entirely?
- Worked on ValueTrend some. It's unfinished, so it's commited out.