Adds API for interrogating current mode

It returns one of the following values:
- gin.	DebugMode
- gin.	ReleaseMode
- gin.	TestMode