Add composer and organize directory for php lib and scripts