Rename functions and embed IDs

To prepare for sessions and folders
Support HTTPS URLs