Update connection-parameters.js

The current connection url handling fails when the password contains
encoded special characters: After the encodeURI, the special
characters from the password are double encoded, and the password is
rejected by postgres.

Proposed fix handles one level of double encoding, and while it
might break compatibility with passwords like "asdfg%77fgh" (which
would've been escaped to asdfg%2577fgh before this patch), I
strongly feel that maintaining backwards compatibility is in this
case less important than following standards and discouraging bad
coding practices.
Update connection-parameters.js

Different double-encode removal strategy
Update creation-tests.js

added unittest for urlencoded components
Merge pull request #1 from za-creature/master

unittest
Update creation-tests.js

connection exports 'database' instead of 'path'
Update connection-parameters.js
Merge branch 'pull/326'

Conflicts:
	lib/connection-parameters.js
	test/unit/connection-parameters/creation-tests.js