Implements application and name_value_list in sugarcrm constructor and login method.  Resolve error in apache error log: missing parameters 2 & 3.