Rearranged the way we use httpc

Fixes #24 
Fixes #27 
Fixes #34
Detected serious bug in epc_dba, put_im makes the system crash.
Note that addToIndex(ImageURL, Perception) is commented in indexer.erl, so it will only print messages instead of saving the hash in the database.