Fix nested image paths, extra css/js extensions, and tests

- fixed handling of nested image paths
- don't add css/js extension if it's already there
- make most tests pass (some non-critical tests don't pass due to an issue with testing framework)
- now require Rails 3.2 and Ruby 1.9
bump version