Tweak dub.json

Add curl dependency in dub.json
Exclude source/test.d
Use null to indicate no parameters
Methods that don't depend on class fields are now static
Fix C-style array declaration