refs #4996 it should basically work but need todo some more stuff like cross browser and php tests. A few more minor and easy to implement features as well