In the API, return Pin resource upon creation

Fixes #68