Added engine.switchstate() function.

Also modified love.load() to use this, and switched all functions to check for a callback's existance before running.