added promise support for custom functions, removed dist catalog after moving to new branch
added support for custom promise functions