add jStorage and store profile buttons.
split component js between head and foot.
prevent some $timeouts from causing a double $apply
unbind $on/$watch when their scope is destroyed