[fix] auto append cid

Always check and update cid param if missing
Do not set selected company until User Company is retrieved and cid in the URL is verified

- Fix for Rise-Vision#418
- Fix for Rise-Vision#417