Simple, unified analysis of Johnson-Lindenstrauss with applications