add revision(version) field for Post
Convert Global.scala to java and do some error page prettiness for #76