Switch to apache license

Signed-off-by: Max Brunsfeld <mbrunsfeld@pivotallabs.com>
Remove unused #includes

Signed-off-by: Tim Jarratt <tjarratt@pivotallabs.com>
Go fmt
Parse empty strings as nil

(rather than looping eternally)