Use constants for tls protocol values.

Instead of hardcoding the values use constants like Alert.LEVEL.FATAL or
Extension.TYPES.SERVER_NAME.

This doesn't create constants for all TLS constants, there are still
more to be done.
Merge pull request #49 from google/enum

Use constants for tls protocol values.