Chnaged Resource to Autowired
implemented generation of thumbnail
fixed download into gridfs
merged download service into objectStore service