Tiny PHP .txt file upload framework / RESTful service