Factor out build command in makefile
remove todo in favor of issues

see issues #46 and #47
Split endpoints into package

fixes #26 on github
Make error processing DRYer