2. Never sign an employment contract that gives any rights to stuff you do away from work to your employer, or that gives your employer any right to control what you may do out of hours as long as it doesn't affect your ability to do your job properly when you're at work.
In short, you should completely firewall any side project from work. If your contract doesn't allow for this and your employer won't give you a clear, specific exception, then you have to decide whether to keep the employer or the side project, but you can't do both.
To counteract this, I only do contract work and work on fairly large team collaborations. My thinking is if I don't own it but the client does (since they are paying me to work on it after hours) - the day job company won't have much to go on because I didn't own the code in the first place. For the second - since I don't have full ownership/sole contributor - maybe that will make them less likely to go after me than a clean cut single owner situation.
All of these projects are done on non-company time, network, and hardware. I don't usually bring my MacBook in but when I have a client deadline, I will work on my train commute and not even charge the MacBook using (company) power - I tote around a second battery.
If your side project ever gets big enough, your company could easily sue for partial ownership. How? By invoking 'discovery' to get access to your private GMail to prove you sent emails about your side project during work hours. Unless, of course, you manage to completely firewall all side project work from your day job hours. More likely, your side project never becomes so lucrative that a company will sue you for ownership and risk being skewered online with a "Big Bad Company X is suing little Indie Me"
http://blog.asmartbear.com/working-startup.html