sessionmanager: Added resource prepping, and invalid resource checking to the bind_resource function.
sessionmanager: Added resource prepping, and invalid resource checking to the bind_resource function.

sarumjanuch/prosody,sarumjanuch/prosody