Memory test

@ibuildthecloud - I just copy pasted the files from his repo :)
Also, add a test where you set the restart policy to on-failure and max retries to anything other than zero.
We want to more thorough in the python-agent tests so that the cattle integration tests only need to test one simple scenario.