Fixed type in HTML id
Fixed JSON request support
Reformatted webapp code
Cleaned up the link service code somewhat
Added partial support for complex link request structure.