Add the ability to set the format in the decorator

Geckoboard has deprecated the parameter passing (although it can still be enabled). This change allows you to set
the response format like this:

```python
@NumberWidget(format='json')
def my_view_fun():
  ...
```