fixed errors in get_partner_id, get_partner and check_partner_parent. Added company_id to session_info and refactored controllers to make use of it.