Fixed some javadoc. Refactored scope and path handling. Added path to WSMessage for easier handling.