Implement directory functions
Add dir and rtc cases for open. Move rtc test functions to testing files
Fix issues with dir_read implementation