Itsactually very common to feel that way when you sleep little or bad. Then feeling bad leads to sleeping problems and the sleeping problems contribute to feeling depressed and again, sleeping problems.
Well for me, when I don't sleep I get extreme mood swings where I can laugh so hard I cry (my record was a half hour straight laughing) to feelin like giving up on life in an instant. Inappropriate anger to crying over nothing.
Some good sleep really seems to do wonders for our moods