Fixed path analysis. Improve path generation to exclude empty path segments.
Initial upload implementation. Need to figure out file name and mime type.