Support removing intermediate containers when building image

Change extract_id to ignore "Removing intermediate container ..." lines
Pass opts to insert_local build request to allow "rm" => true