Remove moz-prefix for transition, as it is not needed these days
Add function to calculate angles in gradients for older syntax

Also, add tests.
Closes #5.