Implement submitblock.

Closes #61.