added remote log system

Created log module,
Integrate with local and online functionalities