Fixed #9 and test ticker test code

Clean-up GPIO stuff, but it shoud be same behavior as before.
Merge branch 'master' of https://github.com/matthewelse/mbed