Fixed file upload bug with file type

Also added new library for twitter testing