File paths changed and compression implemented

All the file references are now absolute paths.
In upload file function, the uploaded file is first saved compressed and
the compressed file is uploaded to the db. The temp files are then
deleted