Move credential encoding to PebbleBucks.URLCredentials

Fetching card data would fail due to the same issue as in #18.

This pull request creates a function that pulls the credentials from localStorage, URI encodes them, and returns a query string version of them.

It also modifies PebbleBucks.onShowConfiguration and PebbleBucks.fetchData to use this new function.