Finally fully implement device registration, also rewritten network task management

Signed-off-by: Frca <killerfrca@gmail.com>