Integrate file uploads + wp_attachment check

Integrate file uploads
    fix folder check js bug

Integrate wp_attachment
	when viewing a given path, check the files in db (no recursion)
		if doesn't exists, create