Implementing searching and pulling docker images

This should be conditional ... only call ```clearTimeout``` if ```search_timeout``` is non-null and set it to null after calling ```clearTimeout```