Restructure Angular app using CommonJS modules

Signed-off-by: Alex Coles <alex@alexbcoles.com>