Specifically in response to your question about staying motivated:
This answer is based upon my long-time thoughts about job interviews, but I think it can be expanded to the process of researching potential new employers as well.
Try to approach thinking about job searching as furthering your knowledge about the field you work in. In every interview I have ever attended, the interviewer has asked me a question that made me think a little differently about what I am used to considering the standard responsibilities that go with my job description. Maybe they asked me about supervising other staff members, and I have never been in the role of supervisor before--well, now I know that at some firms my job title includes supervisory responsibilities, and it is important for me to begin thinking about how I will learn/develop this skill. They might ask you a question about how you would solve a problem that makes you realize that they use completely different processes than your current or previous employers. Now you have a new skill that you can begin learning about that will make you a stronger candidate for future opportunities.
Questions like that can give you a tremendous insight into the way different companies function--and could potentially spark ideas for ways you might improve the processes you use at your current job.
It's a little more difficult to tease this type of information out of a company website, but I still think that, as you review and research potential employers, you can try to think about how what you learn from their websites can enhance your understanding of your industry. Maybe they offer services that your current firm does not offer--think about how those services might be related to or combine in productive ways with the services you expected.
Job hunting is never a fun process--but for me, using it as an opportunity to increase my knowledge and understanding of my chosen industry gives me an extra boost of energy that helps me move past those feelings of disappointment that occur when what I think is the perfect company for me doesn't even respond to my cover letter and resume.