Spin Chains as Data Buses, Logic Buses and Entanglers