validate() checks for UUID v4, not all versions
Use code from the uuid-js npm package to generate uuids #3

Much more thought out than the StackOverflow post
Added Apache licence to match the npm package's license
Bumping version to 0.3.0