add godeps
add a simple test
start to pull out some methods