add google analytics
add ajax success to edit device form
add basic username authentication