discovery: Fixed the profile never being parsed and added handling of profiles without a links section.
Merge branch 'master' of github.com:waldheinz/remotestorage.js