Rewrites the build process and implements the initial story editor

Closes gh-3.