support importing media with other relative paths

regex did not support / or . as the leading path characters.
add support for importing non-files

flare imports may include folders that are not html files.  Support the
import file and import them as an empty file.  ** currently does not
support the parent child relation ship in this case **
Change to properly parse the chunk contents using json methods.