Refactored code, for clarity

This separates out the unpacking of the trello board url and the
creation of the url for downloading JSON
Partial fix for #1 - board names are now detected