Switch to angular.js for simplicity and readability

Almost a complete code rewrite, though the styling
and behavior are virtually the same.

Signed-off-by: Eli Skeggs <skeggse@gmail.com>