Did a whole bunch of testing work

modified:   Gemfile
modified:   Gemfile.lock
	-- temporary roleback to rails 3.2.8 because of this issue https://github.com/rails/rails/pull/8718
	-- added FactoryGirl, Faker, Shoulda gems for testing

modified:   app/models/audio_recording.rb
modified:   app/models/audio_event.rb
	-- fixed bugs found while testing, and minor refactoring

modified:   app/models/project.rb
	-- added validation regex for urn

modified:   app/models/site.rb
	-- removed outdated to_json definition

modified:   spec/controllers/projects_controller_spec.rb
	-- removed unused framework

new file:   spec/factories/audio_event_factory.rb
new file:   spec/factories/audio_recording_factory.rb
new file:   spec/factories/project_factory.rb
new file:   spec/factories/site_factory.rb
new file:   spec/factories/user_factory.rb
	-- created factories for testing using FactoryGirl and Faker

renamed:    test/unit/analysis_item_test.rb -> spec/models/analysis_item_spec.rb
renamed:    test/unit/analysis_job_test.rb -> spec/models/analysis_job_spec.rb
renamed:    test/unit/analysis_script_test.rb -> spec/models/analysis_script_spec.rb
new file:   spec/models/audio_event_spec.rb
new file:   spec/models/audio_recording_spec.rb
renamed:    test/unit/authorization_test.rb -> spec/models/authorization_spec.rb
renamed:    test/unit/bookmark_test.rb -> spec/models/bookmark_spec.rb
renamed:    test/unit/class_search_test.rb -> spec/models/class_search_spec.rb
renamed:    test/unit/module_audio_test.rb -> spec/models/module_audio_spec.rb
renamed:    test/unit/module_cache_test.rb -> spec/models/module_cache_spec.rb
renamed:    test/unit/module_harvester_test.rb -> spec/models/module_harvester_spec.rb
renamed:    test/unit/module_spectrogram_test.rb -> spec/models/module_spectrogram_spec.rb
renamed:    test/unit/permission_test.rb -> spec/models/permission_spec.rb
renamed:    test/unit/photo_test.rb -> spec/models/photo_spec.rb
renamed:    test/unit/progress_test.rb -> spec/models/progress_spec.rb
new file:   spec/models/project_spec.rb
renamed:    test/unit/saved_search_test.rb -> spec/models/saved_search_spec.rb
new file:   spec/models/site_spec.rb
renamed:    test/unit/tag_test.rb -> spec/models/tag_spec.rb
renamed:    test/unit/user_test.rb -> spec/models/user_spec.rb
	-- moved all the test-unit stubs to the rspec directory. N.B. Most of these still contain invalid rspec code (it's all the test::unit stubs)
	-- also wrote and completed model tests for AudioEvents, Projects, Sites, AudioRecordings

modified:   spec/spec_helper.rb
	-- added factorygirl shortcut methods to rspec config

deleted:    test/unit/audio_event_test.rb
deleted:    test/unit/audio_recording_test.rb
deleted:    test/unit/project_test.rb
deleted:    test/unit/site_test.rb
	-- duplicate files not needed