Post artifacts api

A few changes to the log_parser and the restful api to let workers run parse_log tasks without direct connection to the database.
I updated the thclient to support job posting of job artifact to the restful api.
It's ready for a review :)