Added new nodes-control attr to be able to directly inject controls
fixed control references to allow for subdirectories
updated logic and model trees in the database class
general bug fixes on missing fields