Fix errors raised on reports which use --separate-models option

* warning_code was missing, and the fingerprint method on warning relies
on it always existing
Merge pull request #313 from noahd1/missing_warning_code

Fix errors raised on reports which use --separate-models option
XSS test for controller nested inside class
added --only-files option to specify specific paths to scan
Set relative path after setting file name
Add tests for Warning#relative_path
Use file name from template info if available
Don't modify Warning#code when running tests
Add a couple fingerprint tests
Fix fingerprint due to 1.8/1.9 diff in Array#to_s
Merge pull request #315 from presidentbeef/deal_with_controller_inside_class

Only treat controllers like controllers
added test for --only-files and --skip-files options
refactor selecting paths so it works in 1.8.7
use codeclimate status image replace codeclimate logo
refactor get_options and get_output_format
refactor list_checks method
refactor scan method and Tracker#report method
Merge pull request #319 from zlx/zlx/use_codeclimate_statue_image

Use codeclimate status image to replace codeclimate logo
Merge branch 'master' into better_file_name_handling_for_warnings

Conflicts:
	test/tests/test_rails3.rb
Merge pull request #316 from ehlertij/only_files_option

Added --only-files option to specify specific paths to scan