Replication addon code cleanup

This is a housekeeping ticket. It removes an unnecessary dependency
on Active Tasks but mostly just contains style fixes, a little JS
rewrite and the odd markup bug fix.