Move the adapter under the external

Move the adapter package under the external package since the adapter
package is used    by user test code.