Nanospintronics with carbon nanotubes