Added POST action support and some replacement functionality.