Add node API functions to os.inc #3307

#3307

Preset issues #113, #114, etc. depend on this.

Adds 2 functions:

 * `os_node_save()` to programmatically create nodes
 * `os_create_node()` a wrapper function for `os_node_save()` to easily re-use defaults.