Fix bug and improve performance

It is now able to start at old cursor and do not repeat multiple time
the same log. Performance has also been improved due to the use of
"continue" in the main loop
Separate creation of process
Add support for exit signal
Add network connection to connect to remote server
Fix bug of locale
Add command line parser to adjust destination of the logs
Create object

Modification of the code to be object oriented