Role Based Reengineering of Web Applications