Use locals where needed
Better image hooks handling
Fix NFS handling
Device database code
Initial device tracking code