lib/register: #fix id > number
move resources definitions to lib/models
lib/model: 'Network' resource