Best way to move functions from postgresql to another
You can use a custom PostgreSQL extension created with CREATE EXTENSION. 

Put all of your extension code in a build system and have your developers work on that. Then you can install the extensions easily and version control them, roll them back, upgrade them, etc.

Here is a tutorial to get started.