Fixed getting the right downloadurl from request
Fixed remove history (also remove from model not only db)
(Thx Jere Hakala from Jolla for reporting)