Specify device recipients by nickname, contacts by email address.

Hi Dirk, 

Glad those changes I had made earlier worked. I ended up playing with this a little more to try and get it to send to contacts by specifying their e-mail address, and to devices by 'nickname'. The changes got a little more involved, but it seems to be working for me.

One of the changes I made here is that if the JSON configuration file doesn't have 'devices' specified, then it uses the API to fetch a list of devices. I made a similar function for fetching a list of contacts, but this isn't used anywhere. (Could be useful to check that the emails specified as arguments to the `pbPost` function are valid.)

From your previous comments, I removed some dots in the variable names to avoid any conflicts.

I'm not sure if any of these changes will be helpful for you, and since it does change the way the `pbPost` function specifies recipients, feel free to use any portion of this code that's useful for you.

Cheers, 
Mike 
Not sure I really like this.  `init.R` is used to set things up.  We barely know the API key at this point.  Could we not just error out?