Added major functionality and request processing (split out into function --> see /function/processUserRequests.js)