Implement authorization header parsing

Basic HTTP authorization according to RFC 2617 is implemented.
Added an example of its usage with REST handler.
UserId and Password parsing according rfc
Remove unused case clause
Fix indentation