fixed few anoying things.
some cleanup, added http test front-end.
seems ok now...