Lifecycle of a Technology Company: Step-by-Step Legal Background and Practical Guide from Startup to Sale