Added config file functionality, moved webapp files to resources
public, did some minor code organization.