Removed sun.misc.BASE64 usage, replaced with apache commons
Renamed license file
Added apache commons notices
Cleaned up formatting and modified file headers to have GPL license notice