Initial support for using a preconfigured lockdown plist.
* Config dir can now be configured at compile time to %temp%.
* Fixed missing HostID in the pairing records.
* Modified the pairing process to store the device certificate from the SSL handshake.
* Added support for storing the pairing record during ValidatePair.
* Fixed SSL connection shutdown bugs.
* Minor bug fix in lockdownd_start_session.
* Minor coding conventions consistency cleanups.
* Merged latest code from the master branch.
* Moved memory.c into the "src" folder.
* lockdownd_do_pair fixes.
* Fixed SSL error detection when starting a new session.
Merge branch 'dev'

Conflicts:
	common/userpref.c