Adding my own version of polish to the internals.

- Using `time.Duration` instead of an `int32` to represent how long signatures are good for.
- Created own Error type.
- Other stylistic flourishes.