move api docs into subby to prevent main() conflict
Fix POST (shorten) to take JSON input