Rails 4.0 compatiblity

Rails 4.0 uses a fingerprinted manifest file in JSON format. This pull request (based on work by @rovermicro) make asset_sync work with Rails 3.x and Rails 4.0 by detecting the filetype and loading either the YAML or the latest JSON manifest file.