Implemented generate_url method.

Implemented the generate_url method to handle http, https and ftp
schemes. Also, turned all existing methods into @classmethods.
Added tests for generate_url method.

Added tests for the newly implemented generate_url method. Closes #6 and #7.