Consolidate GPIO tests
Partial revert of 3f00242
Move pin mode out of variant and implement pull resistor settings properly.

The `mode` field is used only for pins configured for GPIO function, and
JS can only override the pull resistor bits of it.

Fixes #44
Merge #79 r=@kevinmehall: Reimplement pull resistor settings so they actually work