Changed to class that easily authenticates server side 

plus you can now upload a video and a thumbnail seperatly