0c78252 Refactor build image handler

Authored and Committed by cqi 6 years ago
    Refactor build image handler
    
    * Move Koji session operations into a separate module
    * New context manager koji_service used with with statement
    * Simplify build_image method
    
    Signed-off-by: Chenxiong Qi <cqi@redhat.com>