Major updates

Tests added. Now returns correct http status codes and content types.
Assets of non-text types are handled as well.