Yeah standard solenoid valves aren't a good choice for beer - they have a very small orifice and this will cause massive pressure drops and hence foaming. And yes - very large pipe hammer from instant closing which may make rather unsettling noises to those not used to it. Any valve or tap kind of needs to be mounted near the spout, unless you want your whole beer line exposed to the (unclean) elements and heaps of dripping as the beer drains out of the line.
You'd be better off rigging an external solenoid to an existing tap I reckon.
Ball valves aren't sanitary either, and have the additional problem of possibly being buggered if frozen when shut (expanding water/beer trapped in the ball).
Either way, at various sporting venues, there are beer auto-pourers. It may be worth, if you're willing to line up for a XXXX, checking out how these machines work as they've probably already solved 99% of the above issues.
As an aside, I would really like a simple, cheap set of remote isolation valves to enable me to isolate my kegs without opening my keezer. This would give me peace of mind when I'm away - I've already had a hose pop off the shank and lost a whole keg to the carpet! A simple font-mounted switch would then de-isolate the pouring taps, ready to go.