Fixed fragement resolution.

Test if fragment is a JSON:Schema instance
Make sure to return JSON::Schema from schema_from_fragment()
Moved test_fragment_resolution.rb to 'test' directory