Merge custom nodes implementations

Conflicts between two implementations were resolved. Server-independent implementation was used as the base. Command to send custom nodes to Dynamo server was added. I'll provide more comments inline.
This change is the reason you need to make the change on line 191.  I'm not sure why you changed it...  Although `cleanupDependencies` may be unnecessary in Flood/Dynamo - it should not be simply deleted.  Instead, we should check for the context and only perform it if necessary.