The TTN gateways won't ship until summer, so if you want to start now, you should look at other options.
There is no technical documentation, nor source code available for TTN gateways. Other gateways often use the "packet forwarder", you can find the source code on Github.
Currently, only class A is supported.
The TTN gateway will not have GPS (see this Kickstarter update).