Fix potential infinite loop when adding new agent using file input

When adding a new agent using the -f option provided by manage_agents
there is a possibility that it loops infinitely if you have used up all
of the potential IDs. It will say that the ID needs to be unique since
the last ID checked is already in use. This commit adds a new message
stating the problem and prevents the infinite loop. It also increases
the amount of IDs manage_agents will look at when adding new agents both
in the interactive mode and when using the -f option.
Add remove agent cmd line option to manage_agents
Add TimeGenerated to the output of Windows Event Logs

Updated read_win_el.c to include TimeGenerated from an EVENTLOGRECORD
formatted into a human readable format for better logging. Also updated
the decoder to handle this change.
HandleClient should try to open the m_queue in WRITE mode instead of
READ after an error on SendMSG.
Add pid files for ossec-remoted children so they get cleaned up
on restart or stop
HandleClient should try to open the m_queue in WRITE mode instead of
READ

HandleClient does not ever exit after ossec is stopped or restarted
because the call to StartMQ on line 146 is for READ mode instead of
WRITE. When changed to WRITE, the StartMQ call fails and ossec-remoted
exits.
Merge pull request #20 from bb2gh-ossec/labrown_remoted_child_pid

Labrown remoted child pid
Merge pull request #21 from bb2gh-ossec/labrown_handleclient_write

HandleClient should try to open the m_queue in WRITE mode instead of READ
Merge pull request #9 from bb2gh-ossec/awiddersheim_fix_win_timestamp

Add TimeGenerated to the output of Windows Event Logs
Merge pull request #7 from bb2gh-ossec/awiddersheim_fix_manage_agents_inf_loop

Fix potential infinite loop when adding new agent using file input
Merge pull request #8 from bb2gh-ossec/awiddersheim_add_remove_agent

Add remove agent cmd line option to manage_agents
Merge remote-tracking branch 'upstream/master'