Fix up transition function.

While we are at it, rename transistion into transition everywhere.
Make the dashboard work again.

Fix up the whitespace errors in routes.rb while we are at it.
Merge pull request #450 from VictorLowther/pull-req-master-adc72af6083a5bcefd8c0ba8b0bd5d63a2511bac

Make the transition function do somethin quasi-reasonable. [1/2]