Refactoring the code so that the package can be used as a standalone server or as a package within a dart app. Examples and docs to follow…