Tutorials on ethereum.org recommended in the Ethereum lightning talk as a good starting point for learning how to write your own smart contracts and custom tokens.