TERM LOAN AND SECURITY AGREEMENT by and between