Initial migration to Quantities

`matplotlib` is an optional dependency, so put it in a try ... except as shown [here](http://astropy.readthedocs.org/en/latest/development/testguide.html#tests-requiring-optional-dependencies) to make tests pass for users that don't have it.