Changed 'error' field to 'message' in json responses.
Merge remote-tracking branch 'origin/issue-following' into create-issue

Conflicts:
	kuansim-frontend
Working on get events by user and issue.
Merge remote-tracking branch 'origin/issue-following' into create-issue

Conflicts:
	app/controllers/events_controller.rb
	app/controllers/users_controller.rb
Fixed get_user_events_by_issue
Fixed spec tests.
Added factory files.
Merge branch 'related-issues' into create-issue. Still fails spec tests.

Conflicts:
	app/controllers/events_controller.rb
	app/controllers/issues_controller.rb
	spec/controllers/events_controller_spec.rb
	spec/controllers/issues_controller_spec.rb
	spec/factories/events.rb
	spec/factories/issues.rb
Merge branch 'related-issues' into create-issue

Conflicts:
	spec/controllers/issues_controller_spec.rb
Fixed rspec and some bugs.
Fixed and added mores spec tests.
Fixed some spec tests. All of them now pass.
Some changes
Merge branch 'master' of github.com:g0v/kuansim-rails into related-issues
Merged in related-issues changes
Slight refactoring so that only need id to check if user follows, or already has events and issues
Fixed the tests
Can now get the most popular issues
Changed popular so that it now utilizes scope from issue model.
Also changed the has_many_and_belongs_to relationships to has_many :through.
Had to create new models for that
Removed old issue.popular code