Remove {node,operation}_ptr

This is part of my preparation to template the flo class so it can be
more easily used by other code.
Move operation implementation to header

This is yet another step towards templating the code.
Template the operation class

This is one step towards templating the whole Flo class.