Add Resource#to_h alias

I've found it really useful to be able to call #to_h on a resource now that Ruby's NilClass [supports #to_h](http://ruby-doc.org/core-2.0/NilClass.html#method-i-to_h). So it doesn't matter if the resource is available or not, I always get a hash and can avoid adding conditionals.