Add gomaxprocs to Procfile
Move types into their respective files
Refactor into a library, separate web interface