minor feature additions

Note: i moved the $manage_file_content / hba resources so you can use the internal vars in a provided template