Support for facts uploading
Refactoring of code
Further refactoring
Fix timestamp format
Merge pull request #2 from ares/master

Facts uploading and some refactorings