Override shouldCollapse on relationship fields
Override shouldCollapse on relationship fields

Because a many relationship field doesn't have a simple value (it's an
array) the default `shouldCollapse()` in `Field.js` returns a bogus
value. I have overriden `shouldCollapse()` in `RelationshipField.js` so
that it now can fork its response based on a single/many relationship.
The single relationship path is the same, while a many relationship will
use the `.length` of value instead.

Also fixed a few JSHint errors in generally non-scary ways (add a `var`
on line 79, some semicolons).

joerter/keystone,andrewlinfoot/keystone,webteckie/keystone,snowkeeper/keystone,everisARQ/keystone,kumo/keystone,woody0907/keystone,efernandesng/keystone,naustudio/keystone,ligson/keystone,akoesnan/keystone,wmertens/keystone,mekanics/keystone,wilsonfletcher/keystone,kloudsio/keystone,Redmart/keystone,unsworn/keystone,BlakeRxxk/keystone,jeffreypriebe/keystone,nickhsine/keystone,naustudio/keystone,riyadhalnur/keystone,WingedToaster/keystone,dryna/keystone-twoje-urodziny,trentmillar/keystone,frontyard/keystone,dvdcastro/keystone,benkroeger/keystone,matthieugayon/keystone,frontyard/keystone,cermati/keystone,webteckie/keystone,magalhas/keystone,riyadhalnur/keystone,ONode/keystone,sarriaroman/keystone,jacargentina/keystone,lojack/keystone,dvdcastro/keystone,Yaska/keystone,belafontestudio/keystone,danielmahon/keystone,Pylipala/keystone,Adam14Four/keystone,matthieugayon/keystone,michaelerobertsjr/keystone,rafmsou/keystone,wilsonfletcher/keystone,jeffreypriebe/keystone,antonj/keystone,tony2cssc/keystone,KZackery/keystone,lojack/keystone,davibe/keystone,davidbanham/keystone,SlashmanX/keystone,sendyhalim/keystone,qwales1/keystone,brianjd/keystone,wustxing/keystone,codevlabs/keystone,alobodig/keystone,magalhas/keystone,Tangcuyu/keystone,nickhsine/keystone,udp/keystone,andrewlinfoot/keystone,mikaoelitiana/keystone,tanbo800/keystone,jacargentina/keystone,trentmillar/keystone,vokal/keystone,stunjiturner/keystone,sarriaroman/keystone,Pop-Code/keystone,SJApps/keystone,asifiqbal84/keystone,jstockwin/keystone,beni55/keystone,wmertens/keystone,benkroeger/keystone,Tangcuyu/keystone,kristianmandrup/keystone,frontyard/keystone,antonj/keystone,DenisNeustroev/keystone,developer-prosenjit/keystone,alobodig/keystone,geminiyellow/keystone,vmkcom/keystone,gcortese/keystone,sendyhalim/keystone,developer-prosenjit/keystone,creynders/keystone,the1sky/keystone,mekanics/keystone,tomasztunik/keystone,ligson/keystone,the1sky/keystone,jrit/keystone,creynders/keystone,vokal/keystone,w01fgang/keystone,andrewlinfoot/keystone,trystant/keystone,vmkcom/keystone,youprofit/keystone,youprofit/keystone,gcortese/keystone,kidaa/keystone,francesconero/keystone,xyzteam2016/keystone,snowkeeper/keystone,kristianmandrup/keystone,kwangkim/keystone,jrit/keystone,Pop-Code/keystone,omnibrain/keystone,stosorio/keystone,concoursbyappointment/keystoneRedux,kidaa/keystone,wustxing/keystone,trentmillar/keystone,WingedToaster/keystone,matthewstyers/keystone,w01fgang/keystone,xyzteam2016/keystone,ratecity/keystone,stunjiturner/keystone,benkroeger/keystone,francesconero/keystone,woody0907/keystone,gemscng/keystone,concoursbyappointment/keystoneRedux,kloudsio/keystone,cermati/keystone,tanbo800/keystone,davibe/keystone,Freakland/keystone,beni55/keystone,vokal/keystone,gemscng/keystone,danielmahon/keystone,pr1ntr/keystone,everisARQ/keystone,douglasf/keystone,jstockwin/keystone,SlashmanX/keystone,danielmahon/keystone,kwangkim/keystone,onenorth/keystone,matthewstyers/keystone,douglasf/keystone,akoesnan/keystone,Adam14Four/keystone,matthewstyers/keystone,andreufirefly/keystone,onenorth/keystone,BlakeRxxk/keystone,mikaoelitiana/keystone,pswoodworth/keystone,Pylipala/keystone,omnibrain/keystone,codevlabs/keystone,WofloW/keystone,kumo/keystone,Ftonso/keystone,naustudio/keystone,Redmart/keystone,WofloW/keystone,MORE-HEALTH/keystone,belafontestudio/keystone,dryna/keystone-twoje-urodziny,mbayfield/keystone,linhanyang/keystone,rafmsou/keystone,MORE-HEALTH/keystone,trystant/keystone,davidbanham/keystone,ratecity/keystone,joerter/keystone,mbayfield/keystone,Freakland/keystone,qwales1/keystone,lastjune/keystone,pswoodworth/keystone,Ftonso/keystone,suryagh/keystone,lastjune/keystone,andreufirefly/keystone,udp/keystone,geminiyellow/keystone,Yaska/keystone,michaelerobertsjr/keystone,chrisgornall/d29blog,brianjd/keystone,ONode/keystone,tomasztunik/keystone,unsworn/keystone,efernandesng/keystone,suryagh/keystone,DenisNeustroev/keystone,tony2cssc/keystone,KZackery/keystone,stosorio/keystone,SJApps/keystone,asifiqbal84/keystone,pr1ntr/keystone,chrisgornall/d29blog,Yaska/keystone