It's really not that hard to understand verses like this if you think about it for awhile. Such verses do not stand in contradiction to free pardon and justification by faith alone, but really only associate with it out of necessity. "Right" and "Identification" are two different things that pertain to a person entitled to enter heaven, and might best be explained by this mediocre illustration:
If you are having a party in your house and ask someone next to you to, "Bring Judy into the house!", you might then get an answer of, "Who is Judy?"
"Judy is the one in the full red dress, look for that."
Your servant's immediate ACTION is to look for a woman in a full red dress, but his OBJECTIVE is to bring "Judy" into the house.
At the time of death, God's objective is to bring to glory all who have been pardoned by the death of his Son, justified by the His righteous life, indwelt by His Holy Spirit, and all received soley through faith, freely and by grace. However, the angels who carry the saints to glory are only sent to professing believers who also manifested the life of Christ in their lives. A saint will be allowed entrance into heaven upon the legal basis of his or her union with Christ by faith alone, but they are identified as being those who have that legal basis by the inevitable fruits of that legal union with Christ in their lives. They get in by faith alone, but that faith is not alone! Jesus said about the resurrection unto life,
"...those who have done good, to the resurrection of life, and those who have done evil, to the resurrection of condemnation." John 5:29
We are initially saved by the presence of faith, but we are indentified for resurrection to life by having "done good" as he said. Judy gets into the party because she is Judy and not so much because of the dress that she is wearing...neither did she get in without the dress, and a righteous life works the same way: It is evidential of faith.