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. Not ready for merge yet , I need thclient to handle ArtifactCollections