Make permalink use `ref`
Add `ref` property to baselayers in scaffold create
Update doc for baselayers definition
Merge pull request #850 from tonio/mobile_baselayer_ref

Make mobile permalink use `ref` for baselayers