filewindow metadatapanel branched off as module

filewindow was getting too big (over 300 lines) so I split it into a
separate metadatapanel module and the remainder still in the filewindow
module