Fix breadcrumb issues mentioned in #311

	modified:   app/assets/javascripts/orangeproton.trail.js
Add ApiError class as requested by GLM. Fixes #319

	modified:   app/api/api.rb
	new file:   app/api/api_error.rb
Merge branch 'development' of github.com:pse4/orange-proton into development