Added idle mode and turned polling off by default.

git-svn-id: https://vimpc.svn.sourceforge.net/svnroot/vimpc/trunk@471 fc90b29e-3040-4360-8be2-b397c2834534
Minor optimisations to not enter idle mode as often

git-svn-id: https://vimpc.svn.sourceforge.net/svnroot/vimpc/trunk@472 fc90b29e-3040-4360-8be2-b397c2834534
Initialise file descriptor and reset to -1 when disconnect.

git-svn-id: https://vimpc.svn.sourceforge.net/svnroot/vimpc/trunk@473 fc90b29e-3040-4360-8be2-b397c2834534
Send password before other commands 

git-svn-id: https://vimpc.svn.sourceforge.net/svnroot/vimpc/trunk@474 fc90b29e-3040-4360-8be2-b397c2834534
Clear the current command before starting a command list.

git-svn-id: https://vimpc.svn.sourceforge.net/svnroot/vimpc/trunk@475 fc90b29e-3040-4360-8be2-b397c2834534
Added a define to turn on asserts for mpd error responses this makes debugging easier because you get a stack trace of where the command was run for a particular mpd error response.

git-svn-id: https://vimpc.svn.sourceforge.net/svnroot/vimpc/trunk@476 fc90b29e-3040-4360-8be2-b397c2834534
Using command list for library song adds. 

git-svn-id: https://vimpc.svn.sourceforge.net/svnroot/vimpc/trunk@477 fc90b29e-3040-4360-8be2-b397c2834534
Commandlist for all library adds. Makes things much faster.

git-svn-id: https://vimpc.svn.sourceforge.net/svnroot/vimpc/trunk@478 fc90b29e-3040-4360-8be2-b397c2834534
Only include execinfo if it exists when debugging.

git-svn-id: https://vimpc.svn.sourceforge.net/svnroot/vimpc/trunk@479 fc90b29e-3040-4360-8be2-b397c2834534
Separated enable-debug into enable-debug and enable-warnings, this makes it easier to compile debug builds for compilers other than gcc, or for different versions which do not support all the warnings turned on.

git-svn-id: https://vimpc.svn.sourceforge.net/svnroot/vimpc/trunk@480 fc90b29e-3040-4360-8be2-b397c2834534
Also use command lists for library deletion.

git-svn-id: https://vimpc.svn.sourceforge.net/svnroot/vimpc/trunk@481 fc90b29e-3040-4360-8be2-b397c2834534
Remove double finishing of commands when using commandlists.

git-svn-id: https://vimpc.svn.sourceforge.net/svnroot/vimpc/trunk@482 fc90b29e-3040-4360-8be2-b397c2834534
Proper handling of nested command lists.

git-svn-id: https://vimpc.svn.sourceforge.net/svnroot/vimpc/trunk@483 fc90b29e-3040-4360-8be2-b397c2834534
Flag that events have occurred if there was an event when we clear the command.

git-svn-id: https://vimpc.svn.sourceforge.net/svnroot/vimpc/trunk@484 fc90b29e-3040-4360-8be2-b397c2834534
Only mark command list mode active if there was no error.

git-svn-id: https://vimpc.svn.sourceforge.net/svnroot/vimpc/trunk@485 fc90b29e-3040-4360-8be2-b397c2834534
Command list does not need the command cleared so frequently.

git-svn-id: https://vimpc.svn.sourceforge.net/svnroot/vimpc/trunk@486 fc90b29e-3040-4360-8be2-b397c2834534
Manually call send_noidle and recv_idle rather than using run_noidle.

git-svn-id: https://vimpc.svn.sourceforge.net/svnroot/vimpc/trunk@487 fc90b29e-3040-4360-8be2-b397c2834534
First time idle still not working but no longer disconnects

git-svn-id: https://vimpc.svn.sourceforge.net/svnroot/vimpc/trunk@488 fc90b29e-3040-4360-8be2-b397c2834534
Added clearing of commands into the templated requests

git-svn-id: https://vimpc.svn.sourceforge.net/svnroot/vimpc/trunk@489 fc90b29e-3040-4360-8be2-b397c2834534
Force an update after add all songs.

git-svn-id: https://vimpc.svn.sourceforge.net/svnroot/vimpc/trunk@490 fc90b29e-3040-4360-8be2-b397c2834534