Fixed integrety violation issue when joining network
Factorized the membership retrieval
Fixed incorrect address being taken for the replace_host_part() function
Simplified endpoints settings logic
Fixed endpoints gathering
Added cascading on the user-in-network relationship
Better error handling in the network form
Simplified database design to fix some weird updating/deleting bugs