Web api refactored, static resources handling added