Make buffer modifiable state match file readonly state

http://vim.wikia.com/wiki/Make_buffer_modifiable_state_match_file_readonly_state