Add support for fetching project's resources by namespace.

Also add support for parsing hook payload.