I've seen rear mount motors on them,and I've seen the shock replaced solid and center mounted motors,,,,there is a thread here I believe that uses a CVT on the rear mount w/chain drive,its neat
Easily, you will just need to account for chain growth if you mount the engine in the triangle a decent spring loaded chain tensioner will do this. Mounting it on a rack above the rear wheel is a bad idea, the motor is unspring weight, will have a negative impact on the suspension performance, this is one of the big draw backs for the electric hub motor users with their big rear hubs in suspension bikes.