handle ajax errors (closes foodcoops#300)

Conflicts:
	app/assets/javascripts/application.js