CHANGE: moved web resources in res dir
CHANGE: reorganized code, added support for generic file serving.