Towards General and Autonomous Learning of Core Skills: A Case Study in Locomotion