Updating ref's location_str when slug of category is getting updated.
Updating 'last_edited_time' for refs and categories.
Using 'blank' as default type for new category. Updated logic at other places for consistencty.
Reordered functions in controllers and models so looks logically good.
Merge pull request #7 from jitendra-1217/resolving-bugs

Resolving bugs