Merge PR #8: add username/password credential support and improve network device management