moved the interval regex back into the kbn library, and added an error check to interval_to_seconds rather than having it inside the interval constructor