Just use bitwise transitions, for example like this:
http://www.gamedev.net/page/resources/_/technical/game-programming/tilemap-based-game-techniques-handling-terrai-r934
Also, store your tiles in a single texture. Texture binds are very expensive, and you can’t afford doing them for every tile.