Moto G 2nd Gen - looping on optimizing apps
When you get to the "Dead Andy" screen and it times out saying "No Command" hold POWER and tap VOL UP and release quickly. It should open the stock Recovery menu where you will see the various update and reset options. 

I would first try to Wipe the cache partition and reboot and see if that clears the issue. If the problem persists, go back to the stock recovery menu and perform a factory reset.