Splitting out source and distribution builds of app; refactoring for automated build process.