A teenager who travelled from Middlesbrough to be part of the violence in the Hartlepool riot has been locked up.