Added trails module with INIT hook and PERMISSIONS hook