Added a chomp function similar to Ruby\'s String.chomp.
Added Model classes for the resources. The one for media doesn't work.