Permission system and Inventory manager

Moved all business logic to the api/services dir. I also got rid of the Customer entity. We now only have Users, Warehouses and Products.