Move some of the upload session logic out, will move into a seperate file
Import beego's safemap