Implement application fees. Closes #20