Added xhr upload functionality
Updated example to use upload method on model