TERM LOAN AND SECURITY AGREEMENT dated as of December 29, 2006 by and between IRVINE SENSORS CORPORATION and LONGVIEW FUND, L.P. et al.