Added service to manage resources.
Resource gathering is working.
Code cleanup.
Building service checks before construction or upgrading a building if the planet has enough resources.