implement transition hooks

summon @nateabele 

read comments inline: https://github.com/nateabele/ui-router/commit/5a044110feff91768e9aabdc9a97ab1a437ee066