add api routes to event and session (forgot to push last night)
more route updates
fix bug with missing end
logout fix
fix logout json
add ports
Merge pull request #226 from jandre/master

ports are useful
add json support for more routes.
add authenticity token
include favorite in json routes
add version to login json
add version to login json route
change version key name
Merge branch 'development'

Conflicts:
	app/controllers/sessions_controller.rb
allow users to disable gravatar.
Merge pull request #228 from Snorby/development

allow users to disable gravatar.
use onerror due to gravatar api change
fix password reset form by not using shared ID
Update sensor controller index render formats
Create sensor index js