quick fixes, moved Interval into its own class, made IntervalSet immutable, figured out better way to have alternate ID expressions.

Signed-off-by: gburgett <gordon.burgett@gmail.com>