Move Sopnet code to own application