Launch link is now constructed using functions for serializing JSON and assembling URLs

Addresses https://github.com/garemoko/moodle-mod_tincanlaunch/issues/2