Move DLL entrypoints etc. to api/.

BUG=
R=chrisha@chromium.org

Review URL: https://codereview.appspot.com/183310043