Added license header
Moved upload widget to a cleaner namespace
Cleaned up imports and removed some bad code