Sqlalchemy multithread problems solved. New methods added to job wrapper to get session and job. Job get service used in some places instead of query. A few helper methods turned into staticmethods to make it easier to read and debug the code and have less dangling states.  closes #16