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.
Fix the removal of start menu shortcuts for windows agent

Refer to
http://nsis.sourceforge.net/Shortcuts_removal_fails_on_Windows_Vista.
This fixes issues on machines that run Vista or newer.
Allow NIX agent to use "-f" option and run in foreground
Fix timeout comment in receiver-win.c
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.
Fix debug level message used by NIX daemons to be more clear
Merge pull request #33 from awiddersheim/fix_debug_message

Fix debug level message used by NIX daemons to be more clear
Don't format JSON in zeromq output
Log the file path for file change events
better install for eventchannel support (now only 1 installer)
Removed keepalive message from win_agent.c when not in debug
Merge pull request #35 from awiddersheim/remove_excessive_ka_logging_win

Removed keepalive message from win_agent.c when not in debug
Merge pull request #38 from justintime32/json_fix

Output unformatted JSON and include the file path for syscheck alerts in ZeroMQ JSON output
Merge pull request #34 from SekoiaLab/betterinstall

better install for eventchannel support (now only 1 installer)
eventchannel: fix bug with bookmarks
Merge pull request #40 from SekoiaLab/eventapi

eventchannel: fix bug with bookmarks