Add require.js, contact editing, minor fixes