Paul suggests that we work out our own salvation with fear and trembling. James suggests showing people who have faith without deeds, to show them faith with deeds.
As I noted before, Martin Luther had a hard life until he had his own "Ah, ha!" moment with what both Church and Scripture had laid before him all along. Martin Luther's had focused his entire life on works alone. Once he realized what was missing, he ran to other far end of the spectrum, faith/grace alone. Given enough time, he may have found the balance that most already--and always--had.
I have great sympathy and compassion for Martin Luther. A wounded child grew into a wounded man. In many ways, he was too easily influenced. He had a valuable message in telling people don't become so overwhelmed with (and by) deeds, you overlook the gift. Given enough time, he probably would have also said, "Don't spend so much time gift gazing, that you forget there is also God's will (work) to discern and be done. Remember the Prophets' words: Here I am, Lord. Send me. I come to do Your will.
My stance, and I believe it to be supported by Scripture, is that salvation itself is a totally unearned and completely free gift. I've cited the thief on the cross as an example. He had nothing except a barebones confession of faith in Jesus, who graciously took him to Paradise. I also believe that, once saved, we have a responsibility to act like we are saved.
Think of it this way, if I went to my wife on my wedding day and said, "Give me a list of 10 things that I must do in order to make you happy. I will spend my entire life trying to find ways to get around them, I'll re-interpret them in ways pleasing to myself, or I will outright ignore them, but I will claim that I am following them and you will then have to treat me like your husband". Wouldn't go over very well, would it? If, OTOH, I married my wife and spent the rest of my life watching her, learning what she liked and disliked, making sure I always treated her with love and respect, especially out in public, I wouldn't need a list, would I? I would be acting like a great husband, both in public and in private. No one would have to guess that I was married to my wife, because my life would scream it in everything I do.
Faith without works is dead, because faith CAUSES works. You've seen people in love, and you can instantly tell they are in love because of the way they look at each other, touch each other, talk to and about each other. Those ACTIONS are inspired by the relationship they have with each other. If the husband, for example, claimed he loves his wife but spent every moment talking her down, scowling at her angrily, and ignoring everything she liked to get what he wanted, you wouldn't believe him, right? His love would be dead. He might be in a marriage, but it could be over soon. It is the same with faith. I cannot earn salvation, but if I am saved, there will be evidence of it in my life.