Introducing permissions for reading files

Finally did it, now only the author and it's dependants can download a given file