The emergence of Special and Doubly Special Relativity