State machine based Link header parser. Will be moved to phpish soon.