Add ability to run tests and paster serve (copied from the devckanmaster branch).