Multiple fixes.

* Add popup menu for device properties.
* Split up device meta data and device folder/file access functions,
  This makes for quicker summary listing.
* Free data when quitting.