distribute keys and retreive keylist from overlay

Added functionality also for formatting server responses into strings
and assigning these to appropriate variables. Storing keylist as list of
strings. Have not implemented hashing of file data.