A minecart that can lay rails on it's own. To change the direction of the minecart, place a rail adjacent (to the left or right, depending which direction you want to go) to the rail the minecart is on.
NOTE: 1.8 causes the rails to glitch and be invisible, to fix this just get a rail and try to place it where it was layed at, then it should appear