Simplify from uint to int

Need to consider this some more but for now it
seems to make things easier as an int. Since we
don't need the extra space we can use an int.
Since we already do bounds checking on most int
parameters, we can just add a `x < 0` conditional.
Extract byte operations to own file
Cleanup indexing
Proposal HTTP API
Adds protobuf draft
First handler