heavy refactoring
support regexp for meta data (flush/restore)
restore_meta now returns pseudo dirent
fixed error message output
prefixed global stage dir.
Updated documentation accordingly