Migrate backend to Firebase.

* Remove AmpersandJS.
* Update prod and dev API paths.
* Clean up story editor save lifecycle.
Remove unused libraries.
Move path-helper into javascript libs.
Set canonical URLs to https.