Renamed constants into commons. Moved some stuff to commons.
Added basic entry editing support.