Added script loader

Transplanted tree view (non functional).
Started adding support for reordering nodes. Need to convert code to sql
tomorrow.