Reorganisation of interval files.

I have split up what was Intervals.jl into several files.